[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: node-setting() escaped text
> 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))"/> Sure if you write the unescape() function. However, I'd suggest sed -e 's/</</' -e 's/>/>/' Cheers, Jarno - Dreadful Shadows: Dirge (live) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|