summaryrefslogtreecommitdiff
path: root/tests/exslt/saxon/lineno.1.xsl
blob: 909a93e1da9fb2e5333e73c135d0c36da790db48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:saxon="http://icl.com/saxon"
    exclude-result-prefixes="saxon">

<xsl:output indent="yes"/>

<xsl:template match="/">
    <results>
        <lineno>
            <xsl:value-of select="saxon:line-number(/doc)"/>
        </lineno>
        <lineno>
            <xsl:value-of select="saxon:line-number(/doc/elem)"/>
        </lineno>
        <lineno>
            <xsl:value-of select="saxon:line-number(/doc/elem/namespace::*)"/>
        </lineno>
    </results>
</xsl:template>

</xsl:stylesheet>