source: xslt/vendor/current/tests/XSLTMark/union.xsl@ 372

Last change on this file since 372 was 372, checked in by Yuri Dario, 13 years ago

xslt: initial vendor import of xslt 1.1.26.

File size: 628 bytes
Line 
1<?xml version="1.0"?>
2
3<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5<xsl:output encoding="utf-8"/>
6
7<xsl:template match='*[starts-with(.,"a")]'>
8 <A><xsl:value-of select="."/></A><xsl:text>
9</xsl:text>
10</xsl:template>
11
12<xsl:template match='*[starts-with(substring(.,string-length(.)),"b")]'>
13 <B><xsl:value-of select="."/></B><xsl:text>
14</xsl:text>
15</xsl:template>
16
17<xsl:template match="top">
18 <TOP><xsl:text>
19</xsl:text>
20 <xsl:apply-templates select='*[starts-with(.,"a")]|*[starts-with(substring(.,string-length(.)),"b")]'/>
21 </TOP>
22</xsl:template>
23
24
25
26</xsl:stylesheet>
27
Note: See TracBrowser for help on using the repository browser.