Subject: Re: [xsl] Parsing a string as an XML nodeset From: Fabre Lambeau <fabre.lambeau@xxxxxxxxx> Date: Tue, 24 Aug 2010 20:29:58 +0100 |
I can't believe I couldn't think of this myself... I'm already using your htmlparse() function in other projects... Thanks a lot! Fabre Lambeau On 24 August 2010 17:23, David Carlisle <davidc@xxxxxxxxx> wrote: > On 24/08/2010 17:14, Fabre Lambeau wrote: >> >> Hi, >> >> When not using Saxon, is there any way to parse an XML string into an >> XML nodeset, in the same way as the saxon:parse() extension function >> does? >> I'm forced to use AltovaXML, and have to parse some XML that's been >> CDATA encoded into another XML file, and would like to find a way of >> doing it within an XSLT process. >> > > > If your processor has any kind of extension mechanism to any language that > has an XML parser, I'd use that. If it doesn't you could use > > http://code.google.com/p/web-xslt/source/browse/trunk/htmlparse > > which despite its name does attempt to be an namespace aware xml parser > written in pure xslt2 with no extensions, although because it also tries to > parse html it is far more lenient than the XML spec would allow. > > David > > > ________________________________________________________________________ > The Numerical Algorithms Group Ltd is a company registered in England > and Wales with company number 1249803. The registered office is: > Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. > > This e-mail has been scanned for all viruses by Star. The service is > powered by MessageLabs. > ________________________________________________________________________ > > -- Fabre Lambeau
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Parsing a string as an XM, David Carlisle | Thread | [xsl] Good quality XSLT course in t, Fabre Lambeau |
Re: Fw: [xsl] Question on duplicate, David Carlisle | Date | [xsl] Good quality XSLT course in t, Fabre Lambeau |
Month |