Subject: Re: [xsl] Displaying element value in browser, which is inside CDATA in XML From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Mon, 18 Jul 2011 14:13:14 +0200 |
I used the same template match, to display anchor attribute('name') value in browser. But I can't.
XSL: ==== <xsl:template match="bk:text"> <p><xsl:value-of select="." disable-output-escaping="yes"/></p> </xsl:template>
<xsl:template match="a"> <xsl:apply-templates/><sup><font color="red"><xsl:value-of select="@name"/></font></sup> </xsl:template>
XML: ==== <?xml version="1.0"?>
<bk:text><![CDATA[Psychologists acknowledge that, as in the heroism of Sully Sullenberger, sometimes an individual’s best moments emerge<a class="page_break" name="page7"></a> amid the most difficult circumstances.]]></bk:text>
Required Browser output: ======================== Psychologists acknowledge that, as in the heroism of Sully Sullenberger, sometimes an individual’s best moments emerge << the text 'page7' will appear superscript and font color :red>> amid the most difficult circumstances
Martin Honnen --- MVP Data Platform Development http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Displaying element value , Ramkumar V | Thread | RE: [xsl] Displaying element value , Liam R E Quin |
Re: FW: [xsl] adjust width of block, Mathis Mörke | Date | RE: [xsl] Displaying element value , Liam R E Quin |
Month |