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

   
   <xsl:template match="directive">
    
      <a name="{@name}"/> 
      <center>
         <h4>
            <xsl:value-of select="@name"/> 
         </h4>
      </center>
      <xsl:apply-templates select="syntax"/>
      <xsl:apply-templates select="default"/>
      <xsl:apply-templates select="context"/>
      <xsl:apply-templates select="para"/>
   </xsl:template>
   
   <xsl:template match="syntax">
      <xsl:text>syntax: </xsl:text>
      <xsl:apply-templates/> 
      <br/>
   </xsl:template>
   
   <xsl:template match="default">
      <xsl:text>default: </xsl:text>
      <xsl:apply-templates/> 
      <br/>
   </xsl:template>
   
   <xsl:template match="context">
      <xsl:text>context: </xsl:text>
      <xsl:apply-templates/> 
      <br/>
   </xsl:template>
</xsl:stylesheet>