1.1 --- a/XSLForms/XSL/PrepareMacro.xsl Sun Oct 02 15:46:55 2005 +0000
1.2 +++ b/XSLForms/XSL/PrepareMacro.xsl Sun Oct 02 15:47:10 2005 +0000
1.3 @@ -16,6 +16,20 @@
1.4 </xsl:copy>
1.5 </xsl:template>
1.6
1.7 + <xsl:template match="*[@template:attribute-button]">
1.8 + <xsl:variable name="field-attr" select="substring-before(@template:attribute-button, ',')"/>
1.9 + <xsl:variable name="field-set-attr" select="substring-after(@template:attribute-button, ',')"/>
1.10 + <xsl:copy>
1.11 + <!-- Remove attribute-button and replace name. -->
1.12 + <xsl:apply-templates select="@*[local-name() != 'attribute-button' and local-name() != 'name']"/>
1.13 + <xsl:attribute name="template:attribute"><xsl:value-of select="$field-attr"/></xsl:attribute>
1.14 + <xsl:attribute name="template:expr-attr"><xsl:value-of select="$field-set-attr"/></xsl:attribute>
1.15 + <xsl:attribute name="template:expr">$this-value != ''</xsl:attribute>
1.16 + <xsl:attribute name="name">{template:this-attribute()}</xsl:attribute>
1.17 + <xsl:apply-templates select="*|node()"/>
1.18 + </xsl:copy>
1.19 + </xsl:template>
1.20 +
1.21 <xsl:template match="*[@template:selector-field]">
1.22 <xsl:variable name="field-name" select="@template:selector-field"/>
1.23 <xsl:copy>