Project

Profile

Help

Bug #6407 » TreeModelTest.xslt

simple stylesheet - Adrian Bird, 2024-04-29 14:10

 
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- OUTPUT -->
<xsl:output method="xml"/>

<xsl:variable name="document" select="doc(base-uri())" />
<!-- TEMPLATES -->
<xsl:template match="/">
<root>
<xsl:copy-of select="root/*" />

<doc>
<xsl:value-of select="$document" />
</doc>
</root>
</xsl:template>

</xsl:stylesheet>
(2-2/6)