xsl-list
[Top] [All Lists]

Re: [xsl][xslt v1.0] How to parse the string as node-set?

2012-09-28 15:27:33
On Fri, 2012-09-28 at 16:19 -0400, Mak Praveen wrote:

I am trying to read an XML present inside an XML tag.

What you have in your example is a string that happens to be a quoted
XML document.

XSLT 3 and XPath 3 (and XQuery 3) will include a function to help you.
Otherwise, either you have to use a vendor-specific extension, or
extract the string as a string and then run XSLT or XPath on it
separately.

Another possibility is to use an XML parser written in XSLT; I think in
fact there is at least one of those floating around.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of "Beginning XML", Wrox, July 2012


--~------------------------------------------------------------------
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>
--~--