File: podold.xsl

package info (click to toggle)
libembperl-perl 2.5.0-4%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 6,200 kB
  • ctags: 3,072
  • sloc: ansic: 21,387; perl: 14,496; cpp: 467; xml: 49; makefile: 32; sh: 24
file content (60 lines) | stat: -rw-r--r-- 1,450 bytes parent folder | download | duplicates (11)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version='1.0'?>


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


<xsl:output
   method="xml"
   indent="yes"
   encoding="iso-8859-1"
/>


    <xsl:template match="/">                         
        <html><head><title>POD</title></head><body>
        

        <xsl:apply-templates select="/pod"/> 
        </body></html>
    </xsl:template>


    <xsl:template match="head1">                         
            <h1><xsl:value-of select="."/></h1>
    </xsl:template>


    <xsl:template match="head2">                         
            <h2><img src="sq.gif" width="16" height="16" alt="-" /> <xsl:value-of select="."/></h2>
            <p/>
    </xsl:template>


    <xsl:template match="CODE">                         
            <code><xsl:value-of select="."/></code>
    </xsl:template>

    <xsl:template match="PRE">                         
            <pre><xsl:value-of select="."/></pre>
    </xsl:template>

    <xsl:template match="list">                         
            <ul>
                <xsl:apply-templates/> 
            </ul>
    </xsl:template>


    <xsl:template match="item">                         
            <li><b><xsl:apply-templates/></b></li><br/>
    </xsl:template>

    <xsl:template match="BR">                         
            <br/><br/>
    </xsl:template>


</xsl:stylesheet>