Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - using parent attributes to locate child attributes >Thread Next - Re: using parent attributes to locate child attributes Re: using parent attributes to locate child attributesTo: NULL Date: 10/3/2004 9:10:00 AM Daniel wrote: > Is it possible w/ xsl to do this transformation: > > <foo> > <xs a="mappable" b="mappable" c="mappable" f="house" t="car" > p="notmappable"> > <x id="11" a="1" c="2" house="home"> > <x id="11" a="1" c="2" house="car"> > <x id="11" a="1" c="2" house="dog"> > </xs> > <ys j="mappable" k="mappable" l="foo" f="house" t="car" p="notmappable"> > <y id="22" j="3" l="4" house="home"> > </ys> > </foo> > > to > > <uniques> > <unique id="11"> <!-- from id="11" cus its an id attribute --> > <unique id="1"> <!-- from a="1" cus its "mappable" in parent's > attributes --> > <unique id="2"> <!-- from a="2" cus its "mappable" in parent's > attributes --> > <unique id="22"> <!-- from id="22" cus its an id attribute --> > <unique id="3"> <!-- from a="3" cus its "mappable" in parent's > attributes --> > </uniques> I believe you need to elaboate the transformation logic further. It's not really clear how it should be transformed. -- Oleg Tkachenko [XML MVP] http://blog.tkachenko.com | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
