xref: /aosp_15_r20/external/apache-xml/test/tests/conf/mdocs/mdocs05.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  <!-- FileName: MDOCS05 -->
5  <!-- Document: http://www.w3.org/TR/xslt -->
6  <!-- DocVersion: 19991116 -->
7  <!-- Section: 12.1 -->
8  <!-- Creator: Paul Dick -->
9  <!-- Purpose: Test document() function with path following. -->
10
11<xsl:template match="catalog">
12  <out>
13    <xsl:apply-templates select="document(pointer/urlref/@urlstr)/market.participant/business.identity.group/business.name"/>
14    <xsl:apply-templates select="document('../mdocs/compu.xml')/market.participant/address.set/*"/>
15  </out>
16</xsl:template>
17
18<xsl:template match="location.in.street">
19  <xsl:apply-templates/>
20</xsl:template>
21
22<xsl:template match="street">
23  <xsl:apply-templates/><xsl:text></xsl:text>
24</xsl:template>
25
26<xsl:template match="city">
27  <xsl:apply-templates/><xsl:text>, </xsl:text>
28</xsl:template>
29
30<xsl:template match="country.subentity">
31  <xsl:apply-templates/><xsl:text> </xsl:text>
32</xsl:template>
33
34<xsl:template match="postcode">
35  <xsl:apply-templates/>
36</xsl:template>
37
38<xsl:template match="telephone.number">
39  <xsl:apply-templates/>
40</xsl:template>
41
42
43  <!--
44   * Licensed to the Apache Software Foundation (ASF) under one
45   * or more contributor license agreements. See the NOTICE file
46   * distributed with this work for additional information
47   * regarding copyright ownership. The ASF licenses this file
48   * to you under the Apache License, Version 2.0 (the  "License");
49   * you may not use this file except in compliance with the License.
50   * You may obtain a copy of the License at
51   *
52   *     http://www.apache.org/licenses/LICENSE-2.0
53   *
54   * Unless required by applicable law or agreed to in writing, software
55   * distributed under the License is distributed on an "AS IS" BASIS,
56   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
57   * See the License for the specific language governing permissions and
58   * limitations under the License.
59  -->
60
61</xsl:stylesheet>
62