xsl-list
[Top] [All Lists]

Re: [xsl] Parsing a string as an XML nodeset

2010-08-24 11:23:23
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. ________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>