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

Subject: Re: [xsl][xslt v1.0] How to parse the string as node-set?
From: Mak Praveen <praveenml@xxxxxxxxx>
Date: Fri, 28 Sep 2012 16:32:30 -0400
Hi Liam,

Sadly, I need to use XSLT V1.0 - Our system supports only that version.

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

How can run an XSLT on a string?

I like that idea, let me know if you have a sample.

-Thanks
Pmak


On Fri, Sep 28, 2012 at 4:26 PM, Liam R E Quin <liam@xxxxxx> wrote:
> 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

Current Thread