XML information pipe
Ihre Spezialisten für XML
Example 1:
| XML source: |
<aaa> <bbb><bbb> <ccc><ccc> <aaa> |
| XSLT stylesheet: | <xsl:stylesheet version = '2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> <xsl:import href="st5-a.xslt"/> <xsl:output method="xml"/> indent="yes"/> omit-xml-declaration="yes"/> <xsl:template match="/aaa"> <xxx> <xsl:apply-templates select="*"/> </xxx> </xsl:template> <xsl:template match="bbb"> <main-bbb> <xsl:apply-imports/> </main-bbb> </xsl:template> </xsl:stylesheet> |
| Output: |
<xxx> <main-bbb> <imported-bbb/> </main-bbb> <imported-ccc/> <xxx> |