Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transfer HTML Tag from XML file to HTML file through XSLT
Message
From
20/08/2007 14:16:38
 
 
To
All
General information
Forum:
Internet
Category:
XLST
Title:
Transfer HTML Tag from XML file to HTML file through XSLT
Miscellaneous
Thread ID:
01249174
Message ID:
01249174
Views:
69
Hi,


If I have an XML document that have HTML Tags, how can I to generate an HTML document through XSLT with the HTML Tag working ?

Example:
Test.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<data>
  <items>
    <item>This document is an <strong>example</strong> from XML/XSLT</item>
  </items>
</data>
Test.xsl
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <html>
      <body>
         <xsl:apply-templates select="/data/items" />
      </body>
    </html>
  </xsl:template>

  <xsl:template match="/data/items">
    <td width="40pt" align="center"><xsl:value-of select="item"/></td>
  </xsl:template>
</xsl:stylesheet>
Generate:
This document is an example from XML/XSLT

But I whant:
This document is an example from XML/XSLT
Next
Reply
Map
View

Click here to load this message in the networking platform