Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xslt mapping problem [Thread Next] Re: xslt mapping problemTo: NULL Date: 11/2/2005 11:56:00 AM rottyguy70@y... wrote: > here is a better example: > > assume i have the following: > > 1) static xml > <items> > <item id="1" type="clothes"/> > <item id="2" type="cars"/> > <item id="3" type="tvs"/> > </items> > > ** this should be easy > > 2) i need to derive a unique set from the following: > <new-items> > <new-item type="house"/> > <new-item type="boats"/> > </new-items> > > <new-items> > <new-item type="windows"/> > <new-item type="boats"/> > </new-items> > > ** i can use muenchian to get uniques > > 2b) i need to combine (1) with (2) to get: > <items> > <item id="1" type="clothes"/> > <item id="2" type="cars"/> > <item id="3" type="tvs"/> > <item id="4" type="house"/> > <item id="5" type="boats"/> > <item id="6" type="windows"/> > </items> > > *** i'm unsure how to do this and in particular concat the 2 maps and > gen the sequential id's for house, boats, and windows. Well, as your lists aren't uniform, you have to transform 2 to 1 form. Just transform to a variable and then convert it to nodeset using msxsl:node-set() function. -- Oleg Tkachenko [XML MVP, MCAD] http://www.XmlLab.Net | http://www.XLinq.Net | http://blog.tkachenko.com | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
