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.
EM is HTML tag for Italics
Say below XML

<?xml : ==-- whatever >

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??

Kunal Kishan

Kunal Kishan
"Jogo Bonito"

mhkay June 26th, 2006 05:37 AM

Instead of xsl:value-of, use xsl:copy-of.

Michael Kay
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.