1.1 --- a/XSLForms/XSL/QtDesigner.xsl Mon Oct 31 23:56:40 2005 +0000
1.2 +++ b/XSLForms/XSL/QtDesigner.xsl Mon Oct 31 23:57:57 2005 +0000
1.3 @@ -39,7 +39,9 @@
1.4 <script type="text/javascript" src="scripts/XSLForms.js"> </script>
1.5 </head>
1.6 <body>
1.7 - <xsl:apply-templates select="widget"/>
1.8 + <form method="post">
1.9 + <xsl:apply-templates select="widget"/>
1.10 + </form>
1.11 </body>
1.12 </html>
1.13 </xsl:template>
1.14 @@ -184,7 +186,8 @@
1.15 <select xmlns="http://www.w3.org/1999/xhtml">
1.16 <xsl:variable name="name-prop" select="property[@name='name']"/>
1.17 <xsl:variable name="field-name" select="$name-prop/cstring/text()"/>
1.18 - <xsl:variable name="enum-name" select="concat($name-prop/cstring/text(), '-enum')"/>
1.19 + <!-- NOTE: Adding _enum suffix. -->
1.20 + <xsl:variable name="enum-name" select="concat($name-prop/cstring/text(), '_enum')"/>
1.21 <xsl:attribute name="template:multiple-choice-field"><xsl:value-of select="$field-name"/>,value</xsl:attribute>
1.22 <xsl:attribute name="name"><xsl:value-of select="$field-name"/></xsl:attribute>
1.23 <xsl:apply-templates select="item">
1.24 @@ -197,7 +200,8 @@
1.25 <select xmlns="http://www.w3.org/1999/xhtml" multiple="multiple">
1.26 <xsl:variable name="name-prop" select="property[@name='name']"/>
1.27 <xsl:variable name="field-name" select="$name-prop/cstring/text()"/>
1.28 - <xsl:variable name="enum-name" select="concat($name-prop/cstring/text(), '-enum')"/>
1.29 + <!-- NOTE: Adding _enum suffix. -->
1.30 + <xsl:variable name="enum-name" select="concat($name-prop/cstring/text(), '_enum')"/>
1.31 <xsl:attribute name="template:multiple-choice-list-field"><xsl:value-of select="$field-name"/>,<xsl:value-of select="$enum-name"/></xsl:attribute>
1.32 <xsl:attribute name="name"><xsl:value-of select="$field-name"/></xsl:attribute>
1.33 <xsl:apply-templates select="item">