Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: using xsl file to parse out a chunk of XML

From: paul_0403@-----.---
To: 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent