Subject: RE: [xsl] node-setting() escaped text From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Thu, 13 Feb 2003 17:37:09 -0000 |
> 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> > <html> > text-node containting escaped html > </html> > </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))"/> > In Saxon 7.3 you can do: <xsl:apply-templates select="saxon:parse(string(//item))"/> saxon:parse takes a string containing XML and parses it to create a tree, returning the root node of the tree. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] node-setting() escaped te, Marty McKeever | Thread | RE: [xsl] converting xsl-wd to xsl1, Woody |
RE: [xsl] append values to a String, XSLList | Date | RE: [xsl] node-setting() escaped te, cknell |
Month |