diff options
Diffstat (limited to 'libxslt/tests/XSLTMark/union.xsl')
-rw-r--r-- | libxslt/tests/XSLTMark/union.xsl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libxslt/tests/XSLTMark/union.xsl b/libxslt/tests/XSLTMark/union.xsl new file mode 100644 index 0000000..42f7eef --- /dev/null +++ b/libxslt/tests/XSLTMark/union.xsl @@ -0,0 +1,27 @@ +<?xml version="1.0"?> + +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +<xsl:output encoding="utf-8"/> + +<xsl:template match='*[starts-with(.,"a")]'> + <A><xsl:value-of select="."/></A><xsl:text> +</xsl:text> +</xsl:template> + +<xsl:template match='*[starts-with(substring(.,string-length(.)),"b")]'> + <B><xsl:value-of select="."/></B><xsl:text> +</xsl:text> +</xsl:template> + +<xsl:template match="top"> + <TOP><xsl:text> +</xsl:text> + <xsl:apply-templates select='*[starts-with(.,"a")]|*[starts-with(substring(.,string-length(.)),"b")]'/> + </TOP> +</xsl:template> + + + +</xsl:stylesheet> + |