xref: /aosp_15_r20/external/apache-xml/test/tests/conf/namespace/namespace14.xsl (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1<?xml version="1.0"?>
2<ped:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3  xmlns:ped="http://www.w3.org/1999/XSL/Transform" version="1.0">
4<ped:output method="xml"/>
5<ped:key name="tk" match="xyz" use="zyx"/>
6<xsl:variable name="joe">2</xsl:variable>
7<ped:param name="sam" select="' x 4'"/>
8
9  <!-- FileName: namespace14 -->
10  <!-- Document: http://www.w3.org/TR/xpath -->
11  <!-- DocVersion: 19991116 -->
12  <!-- Section: 2.1 XSLT Namespace -->
13  <!-- Creator: David Marston -->
14  <!-- Purpose: Have more than one prefix bound to the URI of XSLT namespace. -->
15
16<ped:template match="doc">
17  <out>
18    <ped:value-of select="'Testing '"/>
19    <xsl:for-each select="*">
20      <ped:value-of select="."/><ped:text> </ped:text>
21    </xsl:for-each>
22
23    <ped:text>&#010;</ped:text>
24    <xsl:value-of select="$joe"/>
25    <ped:value-of select="$sam"/>
26
27    <ped:text>&#010;</ped:text>
28    <ped:call-template name="ThatTemp">
29      <ped:with-param name="sam">quos</ped:with-param>
30    </ped:call-template>
31
32    <xsl:text>&#010;</xsl:text>
33    <xsl:call-template name="ThatTemp"/>
34  </out>
35</ped:template>
36
37<xsl:template name="ThatTemp">
38  <xsl:param name="sam">unchanged</xsl:param>
39  <ped:copy-of select="$sam"/>
40</xsl:template>
41
42  <!--
43   * Licensed to the Apache Software Foundation (ASF) under one
44   * or more contributor license agreements. See the NOTICE file
45   * distributed with this work for additional information
46   * regarding copyright ownership. The ASF licenses this file
47   * to you under the Apache License, Version 2.0 (the  "License");
48   * you may not use this file except in compliance with the License.
49   * You may obtain a copy of the License at
50   *
51   *     http://www.apache.org/licenses/LICENSE-2.0
52   *
53   * Unless required by applicable law or agreed to in writing, software
54   * distributed under the License is distributed on an "AS IS" BASIS,
55   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56   * See the License for the specific language governing permissions and
57   * limitations under the License.
58  -->
59
60</ped:stylesheet>
61