File: template.xsl

package info (click to toggle)
libapache-asp-perl 2.63-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,120 kB
  • sloc: perl: 6,044; php: 409; sh: 62; lisp: 22; makefile: 10
file content (35 lines) | stat: -rwxr-xr-x 692 bytes parent folder | download | duplicates (9)
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
<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="hello">
Hello <xsl:apply-templates/>
</xsl:template>

<xsl:template match="page">
  <% $Response->Include('header.inc'); %>
   <xsl:apply-templates/> 
  </body>
  </html>
</xsl:template>

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

<xsl:template match="paragraph">
 <p>
  <xsl:apply-templates/>
 </p>
</xsl:template> 


<xsl:template match="file">
  <a><xsl:attribute name="href">
       source.asp?file=<xsl:value-of select="@src"/>
     </xsl:attribute><xsl:value-of select="@title"/></a>
</xsl:template>

</xsl:stylesheet>