I do wish that lecturers could find a more interesting exercise to give their students than these quizzes - they get rather boring after a while.
Note first that you can write this:
<xsl:element name="input">
<xsl:attribute name="type">radio</xsl:attribute>
<xsl:attribute name="name">q<xsl:number count="quizbody"/>_<xsl:number count="quizqna"/></xsl:attribute>
<xsl:attribute name="value">b</xsl:attribute>
<xsl:attribute name="onclick">Engine(<xsl:number level="any"/>, this.value)</xsl:attribute>
</xsl:element> <xsl:apply-templates select="quizb"/>
like this:
<input type="radio" value="b">
<xsl:attribute name="name">q<xsl:number count="quizbody"/>_<xsl:number count="quizqna"/></xsl:attribute>
<xsl:attribute name="onclick">Engine(<xsl:number level="any"/>, this.value)</xsl:attribute>
</input>
To make it conditional, just wrap it in xsl:if:
<xsl:if test="not(particular_node='')">
<input type="radio" value="b">
<xsl:attribute name="name">q<xsl:number count="quizbody"/>_<xsl:number count="quizqna"/></xsl:attribute>
<xsl:attribute name="onclick">Engine(<xsl:number level="any"/>, this.value)</xsl:attribute>
</input>
</xsl:if>
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference