xsl-list
[Top] [All Lists]

RE: HTML encoded text

2004-11-16 07:26:15
Yes Andreas, you can - see example below:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:output method="html" omit-xml-declaration="no"/>

<xsl:template match="/">
        <html>
        <head>
        </head>
        <body>
        <xsl:value-of select="node" disable-output-escaping="yes" />
        </body>
        </html>
</xsl:template>

</xsl:stylesheet>

Cheers,
<prs/> 

-----Original Message-----
From: Andreas Lindahl [mailto:andreas(_dot_)lindahl(_at_)framfab(_dot_)se] 
Sent: Tuesday, November 16, 2004 3:26 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] HTML encoded text

I have an XML file with HTML encoded values, for example:

<node>&amp;lt;p&amp;gt;a paragraph&amp;lt;/p&amp;gt;</node>

Is it possible to translate/convert this into valid HTML in my XSLT file?
For example, I want my XSLT file to convert the above node value to <p>a
paragraph</p>.

Cheers,
Andreas

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>