Hi All,

I have one scenario,

In xslt i have used a input tag of type="button" with id="button1", Now in xslt if a condtion is met,
suppose
<xsl:if test="price &gt; 10">

i need to disable the button1

Can any one please suggest me how to achieve this using xslt.

Thanks in advance.

Regards,
Sireesha

Recommended Answers

All 2 Replies

show more xml xsl code

An example:
<input>
<xsl:choose>
<xsl:when test="I want to disable it">
<xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:when>
</xsl:choose>
</input>

try that =o)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.