xref: /aosp_15_r20/external/apache-xml/test/tests/conf/impincl/fragments/imp16all.xsl (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1<?xml version="1.0"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
4  <!-- Purpose: To be imported by ../ImpIncl16. -->
5
6<xsl:template match="doc">
7  <out>
8    <xsl:apply-templates/>
9  </out>
10</xsl:template>
11
12<xsl:template match="aac|llh|oop|aah|ssb|iii|rre|eek|xxo|aar|sst|bbd|eeo|xxi|ddg|nne">
13  <!-- Template for big union -->
14  <xsl:value-of select="."/><xsl:text>
15</xsl:text>
16</xsl:template>
17
18<xsl:template match="//yyj">
19  <!-- Template for Absolute Location Path covering whole document. -->
20  <xsl:text>Middle: </xsl:text><xsl:value-of select="."/><xsl:text>
21</xsl:text>
22</xsl:template>
23
24<xsl:template match="aaa[@val]">
25  <!-- Template for attribute -->
26  <xsl:text>@val=</xsl:text><xsl:value-of select="@val"/><xsl:text>
27</xsl:text>
28</xsl:template>
29
30<xsl:template match="*[.=117]">
31  <!-- Template for element's value -->
32  <xsl:text>The node containing 117 is </xsl:text><xsl:value-of select="name(.)"/><xsl:text>
33</xsl:text>
34</xsl:template>
35
36<xsl:template match="*[(not(.=117) and ((position() &gt; 225) and (position() &lt; 375))) and ((@century='yes') or (@foo='nope'))]">
37  <!-- Template for compound boolean expression -->
38  <xsl:text>A century node is </xsl:text><xsl:value-of select="name(.)"/><xsl:text>
39</xsl:text>
40</xsl:template>
41
42<xsl:template match="text()"/><!-- suppress extraneous text -->
43
44
45  <!--
46   * Licensed to the Apache Software Foundation (ASF) under one
47   * or more contributor license agreements. See the NOTICE file
48   * distributed with this work for additional information
49   * regarding copyright ownership. The ASF licenses this file
50   * to you under the Apache License, Version 2.0 (the  "License");
51   * you may not use this file except in compliance with the License.
52   * You may obtain a copy of the License at
53   *
54   *     http://www.apache.org/licenses/LICENSE-2.0
55   *
56   * Unless required by applicable law or agreed to in writing, software
57   * distributed under the License is distributed on an "AS IS" BASIS,
58   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59   * See the License for the specific language governing permissions and
60   * limitations under the License.
61  -->
62
63</xsl:stylesheet>
64