summaryrefslogtreecommitdiff
path: root/tests/exslt/date/seconds.2.xsl
blob: a806942b67de930eeb25441dbee843cbb11be8fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:date="http://exslt.org/dates-and-times"
                extension-element-prefixes="date">

<xsl:output method="html"/>
<xsl:strip-space elements="*"/>

<xsl:template match="date">
seconds : <xsl:value-of select="@duration"/>
result  : <xsl:value-of select="date:seconds(@duration)"/>
</xsl:template>

</xsl:stylesheet>