English | Français | >> Deutsch << | Magyar | 中文 | Polski | ZVON > Tutorials > XSLT Tutorial |
Intro / Suchen / ZVON |
>> Seite 60 << | Zurück | Vor | Inhalt | Element-Index |
XML Quelltext
<source> <h1> HTML output </h1> <AAA/> <HR/> <script>if (a < b) foo(); if (cc < dd) foo() </script> <hr/> <hr/> <Hr/> <hR/> </source> Ausgabe
<h1> HTML output </h1> <AAA></AAA> <HR><script>if (a < b) foo(); if (cc < dd) foo() </script><hr> <hr> <Hr> <hR> HTML-Ansicht
HTML output |
XSLT Stylesheet
<xsl:stylesheet version = '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> <xsl:output method="html"/> <xsl:template match="/"> <xsl:copy-of select="/source/*"/> </xsl:template> </xsl:stylesheet> |
XML Quelltext
<source> <h1> HTML output </h1> <AAA/> <HR/> <script>if (a < b) foo(); if (cc < dd) foo() </script> <hr/> <hr/> <Hr/> <hR/> </source> Ausgabe
<h1> HTML output </h1><AAA/><HR/><script>if (a < b) foo(); if (cc < dd) foo() </script><hr/><hr/><Hr/><hR/> HTML-Ansicht
HTML output |
XSLT Stylesheet
<xsl:stylesheet version = '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> <xsl:output method="xml"/> <xsl:template match="/"> <xsl:copy-of select="/source/*"/> </xsl:template> </xsl:stylesheet> |