p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   XSLT (http://p2p.wrox.com/forumdisplay.php?f=86)
-   -   XSLT help : Interpretting HTML tags from XML (http://p2p.wrox.com/showthread.php?t=44474)

kunal_kishan June 26th, 2006 04:20 AM

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"

mhkay June 26th, 2006 05:37 AM

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 05:02 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.