Make room for arch specific download directory.
[myplc.git] / doc / variables.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4 PLC configuration file-to-DocBook conversion stylesheet
5
6 Mark Huang <mlhuang@cs.princeton.edu>
7 Copyright (C) 2006 The Trustees of Princeton University
8
9 $Id$
10 -->
11
12 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
13
14   <xsl:output omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />
15
16   <xsl:template match="/">
17
18     <xsl:for-each select="configuration/variables/category">
19       <xsl:variable name="category_id" select="translate(@id,
20                                                'abcdefghijklmnopqrstuvwxyz',
21                                                'ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />
22       <xsl:variable name="category_desc" select="description" />
23       <section>
24         <title> 
25           Category 
26           <filename><xsl:value-of select="$category_id" /> </filename>
27         </title>
28         <para> 
29           <xsl:value-of select="$category_desc" /> 
30         </para>
31         <variablelist> 
32           <xsl:for-each select="variablelist/variable">
33             <xsl:variable name="variable_id" select="translate(@id,
34                                                      'abcdefghijklmnopqrstuvwxyz',
35                                                      'ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />
36             <varlistentry>
37               <term>
38                 <filename>
39                   <xsl:value-of select="$category_id" />_<xsl:value-of select="$variable_id" />
40                 </filename>
41                 (Default:<filename><xsl:value-of select="value" /></filename>)
42               </term>
43               <listitem>
44                 <para>
45                   <xsl:value-of select="description" />
46                 </para>
47               </listitem>
48             </varlistentry>
49           </xsl:for-each>
50         </variablelist>
51       </section>
52     </xsl:for-each>
53   </xsl:template>
54
55 </xsl:stylesheet>