summaryrefslogtreecommitdiff
path: root/tests/exslt/strings/align.1.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exslt/strings/align.1.xsl')
-rw-r--r--tests/exslt/strings/align.1.xsl22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/exslt/strings/align.1.xsl b/tests/exslt/strings/align.1.xsl
new file mode 100644
index 00000000..3de033d7
--- /dev/null
+++ b/tests/exslt/strings/align.1.xsl
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings"
+ exclude-result-prefixes="str">
+
+<xsl:output indent="yes"/>
+
+<xsl:template match="test-cases">
+ <test-results>
+ <xsl:apply-templates select="test-case"/>
+ </test-results>
+</xsl:template>
+
+<xsl:template match="test-case">
+ <test-result>
+ <xsl:value-of select="str:align(@string, @padding, @alignment)"/>
+ </test-result>
+</xsl:template>
+
+</xsl:stylesheet>
+