Project

Profile

Help

Bug #6579 » xslt-test.xsl

Source XSLT - Joel Kalvesmaki, 2024-11-07 02:53

 
<xsl:stylesheet xmlns:file="http://expath.org/ns/file"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
expand-text="yes"
version="3.0">

<xsl:mode default-mode="#unnamed" on-no-match="shallow-copy"/>
<xsl:template match="/*/*[1]">
<xsl:next-match/>
<xsl:text>&#xa;</xsl:text>
<xsl:comment>fn:doc available? {function-available('doc', 1)}</xsl:comment>
<xsl:text>&#xa;</xsl:text>
<xsl:comment>file:last-modified available? {function-available('file:last-modified', 1)}</xsl:comment>
<xsl:text>&#xa;</xsl:text>
<xsl:comment>this file last modified {file:last-modified(static-base-uri())}</xsl:comment>
<xsl:text>&#xa;</xsl:text>
<xsl:comment>this file size {file:size(static-base-uri())}</xsl:comment>
<xsl:text>&#xa;</xsl:text>
<xsl:comment>uris sorted {sort((base-uri(/), static-base-uri()), (), file:last-modified#1)}</xsl:comment>
</xsl:template>

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