Hi, I don't know xslt - i just need a modification done to existing xslt file.
At the moment the page has 2 radio buttons with a submit button, which exeutes the code dependant on the radio option selected.
Can anyone please help: I want to convert this to two buttons:
<!-- This is the original code -->
<xsl:if test="$cTrigger > '1'">
<xsl:for-each select="Activit y/ObjectGroup[@type='trigger']/Object">
<xsl:element name="asp:Radio Button">
<xsl:attribut e name='id'><xsl: value-of select='@name' /></xsl:attribute>
<xsl:attribut e name='runat'>se rver</xsl:attribute>
<xsl:attribut e name='GroupName '>triggers</xsl:attribute>
<xsl:if test="Value[. = 'on']">
<xsl:attribut e name='Checked'> True</xsl:attribute>
</xsl:if>
</xsl:element>
</xsl:for-each>
</xsl:if>
<xsl:if test="$cTrigger > '0'">
<xsl:element name="asp:Butto n">
<xsl:attribut e name="id">___Su bmit</xsl:attribute>
<xsl:attribut e name="runat">se rver</xsl:attribute>
<xsl:attribut e name="text">Sub mit</xsl:attribute>
<xsl:attribut e name="CommandNa me">Submit</xsl:attribute>
</xsl:element>
</xsl:if>
This is what I tried, by setting the value of ( test="Value[. = 'on']" ) onClick
<xsl:if test="$cTrigger > '1'">
<xsl:for-each select="Activit y/ObjectGroup[@type='trigger']/Object">
<xsl:element name="asp:Butto n">
<xsl:attribut e name='id'><xsl: value-of select='@name' /></xsl:attribute>
<xsl:attribut e name="onClick">
<xsl:test="Valu e[. = 'on']"></xsl:test>
<xsl:attribut e name='Checked'> True</xsl:attribute>
</xsl:attribute>
<xsl:attribut e name="runat">se rver</xsl:attribute>
<xsl:attribut e name="text">Sub mit</xsl:attribute>
<xsl:attribut e name="CommandNa me">Submit</xsl:attribute>
</xsl:element>
</xsl:for-each>
</xsl:if>
Please help converting this as i'm not sure what i'm doing but i'm trying to set the "test" value.
Regards
At the moment the page has 2 radio buttons with a submit button, which exeutes the code dependant on the radio option selected.
Can anyone please help: I want to convert this to two buttons:
<!-- This is the original code -->
<xsl:if test="$cTrigger > '1'">
<xsl:for-each select="Activit y/ObjectGroup[@type='trigger']/Object">
<xsl:element name="asp:Radio Button">
<xsl:attribut e name='id'><xsl: value-of select='@name' /></xsl:attribute>
<xsl:attribut e name='runat'>se rver</xsl:attribute>
<xsl:attribut e name='GroupName '>triggers</xsl:attribute>
<xsl:if test="Value[. = 'on']">
<xsl:attribut e name='Checked'> True</xsl:attribute>
</xsl:if>
</xsl:element>
</xsl:for-each>
</xsl:if>
<xsl:if test="$cTrigger > '0'">
<xsl:element name="asp:Butto n">
<xsl:attribut e name="id">___Su bmit</xsl:attribute>
<xsl:attribut e name="runat">se rver</xsl:attribute>
<xsl:attribut e name="text">Sub mit</xsl:attribute>
<xsl:attribut e name="CommandNa me">Submit</xsl:attribute>
</xsl:element>
</xsl:if>
This is what I tried, by setting the value of ( test="Value[. = 'on']" ) onClick
<xsl:if test="$cTrigger > '1'">
<xsl:for-each select="Activit y/ObjectGroup[@type='trigger']/Object">
<xsl:element name="asp:Butto n">
<xsl:attribut e name='id'><xsl: value-of select='@name' /></xsl:attribute>
<xsl:attribut e name="onClick">
<xsl:test="Valu e[. = 'on']"></xsl:test>
<xsl:attribut e name='Checked'> True</xsl:attribute>
</xsl:attribute>
<xsl:attribut e name="runat">se rver</xsl:attribute>
<xsl:attribut e name="text">Sub mit</xsl:attribute>
<xsl:attribut e name="CommandNa me">Submit</xsl:attribute>
</xsl:element>
</xsl:for-each>
</xsl:if>
Please help converting this as i'm not sure what i'm doing but i'm trying to set the "test" value.
Regards
Comment