மாறியைப் பயன்படுத்தல் (variable)[தொகு]
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" />
<xsl:variable name="x">எடுத்துக்காட்டுத்_தரவு</xsl:variable>
<xsl:template match="/*">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="*">
<xsl:element name="{name()}">
<xsl:value-of select="$x"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
படியெடுத்தல்[தொகு]
முழுமையாகப் படியெடுத்தல் (பண்புகளைத் தவிர்த்து)[தொகு]
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" />
<xsl:template match="*">
<xsl:copy>
<xsl:apply-templates />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" />
<xsl:template match="*">
<xsl:element name="{name()}">
<xsl:apply-templates />
</xsl:element>
</xsl:template>
</xsl:stylesheet>
முழுமையாகப் படியெடுத்தல்[தொகு]
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" />
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>