RE: [xsl] node-setting() escaped text

Subject: RE: [xsl] node-setting() escaped text
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 13 Feb 2003 15:34:36 +0200
> Interesting problem i need to solve, either on the front end 
> or the backend,
> not sure which.  I just had an idea that "might" work, 
> front-end, if i could
> figure out how.
> Sample DOM:
> <page>
>   <item>
>   &lt;html&gt;
>     text-node containting escaped html
>   &lt;/html&gt;
>   </item>
> </page>
> Knowing in advance that the escaped HTML is well-formed, is 
> there any way to
> evaluate this text-node string into a node-set and 
> apply-templates upon it?
> Something like this perhaps?
> <xsl:apply-templates select="xx:node-set(unescape(//item))"/>

Sure if you write the unescape() function. However, I'd suggest

sed -e 's/&lt;/</' -e 's/&gt;/>/'


Jarno - Dreadful Shadows: Dirge (live)

 XSL-List info and archive:

Current Thread