Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - xslt question: change one xml schema to another ? [Thread Next] Re: xslt question: change one xml schema to another ?To: NULL Date: 3/2/2006 12:45:00 PM Hi parth - You could use an XSLT mapper - just load the source and targets, then draw lines from one to the other - the XSLT code that martin wrote is generated for you. www.---.com You could also implement the same mapping using XQuery: www.---.com Hope that helps. Sincerely, The Stylus Studio Team www.---.com parth wrote: > I have the following XML file - > > <root> > <book> > <section>art</section> > <title>abc</title> > <author>mark</author> > </book> > <book> > <section>science</section> > <title>def</title> > <author>jeff</author> > </book> > <book> > <section>art</section> > <title>pqr</title> > <author>tracy</author> > </book> > <book> > <section>science</section> > <title>xyz</title> > <author>albert</author> > </book> > </root> > > > I want to convert the above schema to look like the following schema > - > > > <root> > <section> > <name>art</name> > <book> > <title>abc</title> > <author>mark</author> > </book> > <book> > <title>pqr</title> > <author>tracy</author> > </book> > </section> > > > <section> > <name>science</name> > <book> > <title>def</title> > <author>jeff</author> > </book> > <book> > <title>xyz</title> > <author>albert</author> > </book> > </section> > </root> > > > Can this be done using XSLT? How can I change the schema? > Thanks in advance. > > > - Parth | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
