aboutsummaryrefslogtreecommitdiff
path: root/docs/xslt/content.xslt
blob: e691ad3d3ff26a551d2e5341ae1e394a056a7920 (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
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

   <xsl:template match="section[@name and @title]">

      <a name="{@name}"/> 
      <center>
         <h4>
            <xsl:value-of select="@title"/>
         </h4>
      </center>

      <xsl:apply-templates/>
   </xsl:template>

   <xsl:template match="section[not(@name) and @title]">

      <center>
         <h4>
            <xsl:value-of select="@title"/>
         </h4>
      </center>

      <xsl:apply-templates/>
   </xsl:template>

   <xsl:template match="section[not(@name) and not(@title)]">
      <xsl:apply-templates/>
   </xsl:template>

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

   <xsl:template match="value"> 
      <i>
         <xsl:apply-templates/>
      </i>
   </xsl:template>

</xsl:stylesheet>