Re: Displaying element value in browser, which is insi
I used the same template match, to display anchor attribute('name') value in browser. But I can't.
Well if the markup in the input XML is contained in a CDATA section then in the XSLT/XPath data model there is simply a text node as the sole child node of the 'bk:text' element. If you want to use XPath or apply-templates on the XML markup in that text node then you first need to parse the markup as XML (as long as it is XML). However doing so requires an extension function. Saxon 9 has one for such a task
<xsl:apply-templates select="saxon:parse(concat('<dummy>', ., '</dummy>'))/dummy/node()"
Martin Honnen --- MVP Data Platform Development http://msmvps.com/blogs/martin_honnen/
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