Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transfer HTML Tag from XML file to HTML file through XSLT
Message
De
20/08/2007 14:16:38
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
XLST
Titre:
Transfer HTML Tag from XML file to HTML file through XSLT
Divers
Thread ID:
01249174
Message ID:
01249174
Vues:
71
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform