Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Merge two XML docments with XSLT [Thread Next] Re: Merge two XML docments with XSLTTo: NULL Date: 9/2/2004 8:16:00 PM oops, here is the same question w/ fixes: Is this possible with an XSLT to merge these two XML documents and get the third document? If so any help, guidence, XSLT would be much appreciated! Maps Document: <maps> <element source="car" target="automobile"> <attribute source="blue" target="red"/> <attribute source="right" target="left"/> </element> <element source="house" target="close"> <attribute source="balcony" target="deck"/> </element> </maps> Data Document: <top> <foo x="1" y="2"/> <bar x="1" y="2"/> <cars> <car blue="1"/> </cars> <houses> <house balcony="true" frontdoor="open"/> </houses> </top> Desired Target Document After XSLT Transformation <top> <foo x="1" y="2"/> <bar x="1" y="2"/> <cars> <automobile red="1"/> </cars> <houses> <close deck="true"/> </houses> </top> "Daniel" <softwareengineer98037@y...> wrote in message news:%23EzPpOWkEHA.524@T...... > Is this possible with an XSLT to merge these two XML documents and get the > third document? If so any help, guidence, XSLT would be much appreciated! > > Maps Document: > > <maps> > <element source="car" target="automobile"> > <attribute source="blue" target="red"/> > <attribute source="right" target="left"/> > </element> > <element source="house" target="close"> > <attribute source="balcony" target="deck"/> > </element> > </maps> > > > Data Document: > > <top> > <foo x="1" y="2"/> > <bar x="1" y="2"/> > <cars> > <car blue="1"/> > </cars> > <houses> > <house balcony="true" frontdoor="open"/> > </houses> > </top> > > > Desired Target Document After XSLT Transformation > > <top> > <foo x="1" y="2"/> > <bar x="1" y="2"/> > <cars> > <automobile red="1"/> > </cars> > <houses> > <house deck="true"/> > </houses> > </top> > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
