Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: using xsl file to parse out a chunk of XML >Thread Next - Re: using xsl file to parse out a chunk of XML Re: using xsl file to parse out a chunk of XMLTo: NULL Date: 1/7/2009 9:19:00 AM On Jan 7, 11:59=A0am, Martin Honnen <mahotr...@yahoo.de> wrote: > paul_0...@yahoo.com wrote: > > I have the following XML file: > > > <query id=3D"8124-1228816866" chunk=3D"0" desc=3D""> > > =A0 =A0<context>id=3D1005;pid=3D5208;tid=3D5400</context> > > =A0 =A0 <a>111</a> > > =A0 =A0 <b>222</b> > > =A0 =A0 <c>333</c> > > </query> > > <query id=3D"8124-1228816867" chunk=3D"0" desc=3D""> > > =A0 =A0<context>id=3D1006;pid=3D5278;tid=3D5400</context> > > =A0 =A0 <a>444</a> > > =A0 =A0 <b>555</ba> > > =A0 =A0 <c>666</c> > > </query> > > That is not a well-formed XML document as it lacks a single root element. > > > Can somebody provide me with an XSL file where I can pass in > > values for id, pid and tid and than return a chunk of the XML > > (it's okay to put into a temp file). > > Do you want to use XSLT 2.0 or 1.0? > > -- > > =A0 =A0 =A0 =A0 Martin Honnen > =A0 =A0 =A0 =A0http://JavaScript.FAQTs.com/ The XML document does have a root element I just simplfieid it for the posting. As for the verison of XSLT would there be a big difference in the syntax of the XSL file? this is the version of xsltproc I am using so what ever will work this this. Using libxml 20620, libxslt 10115CVS1047 and libexslt 812CVS1047 xsltproc was compiled against libxml 20623, libxslt 10115 and libexslt 812 libxslt 10115 was compiled against libxml 20623 libexslt 812 was compiled against libxml 20623 Thanks for your help | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
