xref: /aosp_15_r20/external/apache-xml/test/tests/conf/conflictres/conflictres37.xsl (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1<?xml version="1.0" encoding="UTF-8"?>
2
3  <!-- FileName: conflictres37 -->
4  <!-- Document: http://www.w3.org/TR/xslt -->
5  <!-- DocVersion: 19991116 -->
6  <!-- Section: 5.5 -->
7  <!-- Creator: Ilene Seelemann -->
8  <!-- Purpose: Test that qname with predicate has precedence over ncname:*,
9                which in turn has precedence over * in a match pattern. -->
10
11<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12    version="1.0"
13    xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
14
15    <xsl:template match="/doc">
16      <out>
17         <xsl:apply-templates/>
18       </out>
19     </xsl:template>
20     <xsl:template match="xf:output[@form]">
21        <OutWithForm>
22           <xsl:value-of select="."/>
23        </OutWithForm>
24     </xsl:template>
25     <xsl:template match="xf:*">
26        <OutWithoutForm>
27        <xsl:value-of select="."/>
28        </OutWithoutForm>
29     </xsl:template>
30     <xsl:template match="*">
31         <General>
32         <xsl:value-of select="."/>
33         </General>
34     </xsl:template>
35
36  <!--
37   * Licensed to the Apache Software Foundation (ASF) under one
38   * or more contributor license agreements. See the NOTICE file
39   * distributed with this work for additional information
40   * regarding copyright ownership. The ASF licenses this file
41   * to you under the Apache License, Version 2.0 (the  "License");
42   * you may not use this file except in compliance with the License.
43   * You may obtain a copy of the License at
44   *
45   *     http://www.apache.org/licenses/LICENSE-2.0
46   *
47   * Unless required by applicable law or agreed to in writing, software
48   * distributed under the License is distributed on an "AS IS" BASIS,
49   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50   * See the License for the specific language governing permissions and
51   * limitations under the License.
52  -->
53
54</xsl:stylesheet>
55