- only look for .xml files in /etc/planetlab/configs
[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: GenDoc.xsl,v 1.8 2005/10/10 17:46:36 mlhuang Exp $
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   <variablelist>
19         <xsl:for-each select="configuration/variables/category">
20           <xsl:variable name="category_id" select="translate(@id,
21                                                    'abcdefghijklmnopqrstuvwxyz',
22                                                    'ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />
23           <xsl:for-each select="variablelist/variable">
24             <xsl:variable name="variable_id" select="translate(@id,
25                                                      'abcdefghijklmnopqrstuvwxyz',
26                                                      'ABCDEFGHIJKLMNOPQRSTUVWXYZ')" />
27             <varlistentry>
28               <term>
29                 <xsl:value-of select="$category_id" />_<xsl:value-of select="$variable_id" />
30               </term>
31               <listitem>
32                 <para>
33                   Type: <xsl:value-of select="@type" />
34                 </para>
35                 <para>
36                   Default: <xsl:value-of select="value" />
37                 </para>
38                 <para>
39                   <xsl:value-of select="description" />
40                 </para>
41               </listitem>
42             </varlistentry>
43           </xsl:for-each>
44         </xsl:for-each>
45
46     </variablelist>
47
48 </xsl:template>
49
50 </xsl:stylesheet>