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

Subject: Re: [xsl] node-setting() escaped text
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Thu, 13 Feb 2003 16:18:19 +0200
Marty McKeever wrote:
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:

    text-node containting escaped html

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))"/>
No, xx-node-set function is for converting result tree fragment to nodeset. You need some extension function, which allows you to parse string, checkout your processor documentation or develop yourself such one.
PS. If HTML is well-formed for sure, what's the reason for it to be escaped?

Oleg Tkachenko
Multiconn Technologies, Israel

XSL-List info and archive:

Current Thread