summaryrefslogtreecommitdiff
path: root/tests/phaos-xmldsig-three/document.xsl
blob: 7c3cd854b2775c576f5eabc9570607c2f581b4b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict" >

<xsl:strip-space elements="player name position team"/>
<xsl:output
   method="xml"
   indent="no"
   encoding="iso-8859-1"
/>

<xsl:template match="player">
 <html>
   <head>
     <title>
       <xsl:value-of select="name"/>
     </title>
   </head>
   <body>
     <xsl:apply-templates/>
   </body>
 </html>
</xsl:template>

<xsl:template match="player/name">
  <h1>
    <xsl:apply-templates/>
  </h1>
</xsl:template>

<xsl:template match="player/position">
  <h2>
    <xsl:apply-templates/>
  </h2>
</xsl:template>

<xsl:template match="player/team">
  <h3>
    <xsl:apply-templates/>
  </h3>
</xsl:template>



</xsl:stylesheet>