xref: /aosp_15_r20/external/apache-xml/test/tests/exslt/strings/strings11.xsl (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1<?xml version="1.0" ?>
2
3
4
5<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
7	xmlns:str="http://exslt.org/strings"
8
9	exclude-result-prefixes="str" >
10
11	<xsl:template match="documents">
12
13		<out>
14
15			<xsl:apply-templates />
16
17		</out>
18
19	</xsl:template>
20
21
22
23	<xsl:template match="document">
24
25		<xsl:element name="a">
26
27			<xsl:attribute name="href">
28
29				<xsl:text>http://www.example.com/lookup?</xsl:text>
30
31				<xsl:value-of select="str:encode-uri(@location,true())"/>
32
33			</xsl:attribute>
34
35			<xsl:value-of select="@name"/>
36
37		</xsl:element>
38
39	</xsl:template>
40
41</xsl:stylesheet>
42
43