summaryrefslogtreecommitdiff
path: root/tests/exslt/saxon/lineno.1.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exslt/saxon/lineno.1.xsl')
-rw-r--r--tests/exslt/saxon/lineno.1.xsl24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/exslt/saxon/lineno.1.xsl b/tests/exslt/saxon/lineno.1.xsl
new file mode 100644
index 00000000..909a93e1
--- /dev/null
+++ b/tests/exslt/saxon/lineno.1.xsl
@@ -0,0 +1,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>
+