![]() |
XSLT help : Interpretting HTML tags from XML
I am having an XML in which I want to store HTML tags and this TAG should be interpreted as HTML tag only by XSLT.
i.e. EM is HTML tag for Italics Say below XML <?xml : ==-- whatever > <Detail> <NAME>Kunal</NAME> <TITLE> <EM>Kishan</EM> </TITLE> </DETail> The XSLT for this <span class=”pagetitle><xslt:value-of select=”//NAME”/> < xslt:value-of select=”//TITLE”/></span> Should be transformed to <span class=”pagetitle>Kunal <EM>Kishan</EM></span> in the HTML Page Code How to achieve this?? Thanks Kunal Kishan :) Thanks, Kunal Kishan "Jogo Bonito" |
Instead of xsl:value-of, use xsl:copy-of.
Michael Kay http://www.saxonica.com/ Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference |
All times are GMT -4. The time now is 06:35 AM. |
Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.