summaryrefslogtreecommitdiff
path: root/sandbox/paultremblay/python_interface/tools/make_params.xsl
blob: 1f936165d479f3ba99a0c6425aad4af28b2a1fe9 (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
<xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    version="1.1">

    <!-- $Id$ -->

    <xsl:output method="text"/>
    <xsl:template match="xsl:stylesheet">
        <xsl:text>param_dict = {&#xA;</xsl:text>
        <xsl:apply-templates/>
        <xsl:text>}</xsl:text>
    </xsl:template>


    <xsl:template match="xsl:param">
        <xsl:text>'</xsl:text>
        <xsl:value-of select="@name"/>
        <xsl:text>' : '</xsl:text>
        <xsl:value-of select="."/>
        <xsl:text>',</xsl:text>
        <xsl:text>&#xA;</xsl:text>
    </xsl:template>

    <xsl:template match="@*|node()"/>

</xsl:stylesheet>