Project

Profile

Help

Support #6285 ยป document-uri.xsl

Ken Holman, 2023-12-13 01:43

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">

<xsl:output method="text"/>

<xsl:variable name="top" select="/" as="document-node()"/>

<xsl:template match="/">
<xsl:value-of select="system-property('xsl:product-version')"/>
<xsl:text>&#xa;</xsl:text>
<xsl:value-of select="document-uri($top)"/>
<xsl:text>&#xa;</xsl:text>
</xsl:template>

</xsl:stylesheet>
    (1-1/1)