xref: /aosp_15_r20/external/apache-xml/test/tests/accept/entref/entref01.xsl (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4
5<xsl:output method="html"/>
6
7
8
9  <!-- FileName: entref01 -->
10
11  <!-- Document: http://www.w3.org/TR/xslt -->
12
13  <!-- DocVersion: 19991116 -->
14
15  <!-- Section: 16.2 HTML Output Method -->
16
17  <!-- Purpose: ESC of non-ASCII chars in URI attribute	values using method
18
19       cited in Section B.2.1 of HTML 4.0 Spec. -->
20
21
22
23<xsl:template match="/">
24
25  <out>
26
27
28
29    1. "&amp;"   <A HREF="&amp;"/>
30
31    2. "&lt;"    <A href="&lt;"/>
32
33    3. "&gt;"    <A href="&gt;"/>
34
35    4. "&quot;"  <A href="&quot;"/>
36
37    5. "&apos;"  <A href="&apos;"/>
38
39    6. "&#169;"  <A HREF="&#169;"/>	<!-- Copyright -->
40
41    7. "&#035;"  <A href="&#035;"/>	<!-- Hashmark -->
42
43    8. "&#165;"  <A href="&#165;"/>	<!-- yen      -->
44
45    9. "&#032;"  <A href="&#032;"/>	<img src="Test 31 Gif.gif"/>
46
47   10."&#037;"  <A href="&#037;"/>	<!-- percent -->
48
49   11."&#009;"  <A href="&#009;"/>	<!-- tab    -->
50
51   12."&#127;"  <A href="&#127;"/>	<!-- delete  -->
52
53   13."&#209;"  <A href="&#209;"/>	<!-- N-tilde -->
54
55   14."&#338;"  <A href="&#338;"/>  <!-- OE Ligature -->
56
57   <A href="phnix.html">test1</A>
58
59      <A href="phŒnix.html">test2</A>
60
61  </out>
62
63</xsl:template>
64
65  <!--
66   * Licensed to the Apache Software Foundation (ASF) under one
67   * or more contributor license agreements. See the NOTICE file
68   * distributed with this work for additional information
69   * regarding copyright ownership. The ASF licenses this file
70   * to you under the Apache License, Version 2.0 (the  "License");
71   * you may not use this file except in compliance with the License.
72   * You may obtain a copy of the License at
73   *
74   *     http://www.apache.org/licenses/LICENSE-2.0
75   *
76   * Unless required by applicable law or agreed to in writing, software
77   * distributed under the License is distributed on an "AS IS" BASIS,
78   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
79   * See the License for the specific language governing permissions and
80   * limitations under the License.
81  -->
82
83</xsl:stylesheet>
84