Subject: Re: [xsl] FW: Toggling radio buttons From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx> Date: Fri, 24 Aug 2001 17:40:33 +0100 |
[Sorry - my finger slipped!] Hi Elisabeth, > I got that code form www.w3schools.com , in the XSL tutorial. It looks as though they are teaching the Microsoft-specific dialect called XSL, rather than XSLT? This list covers XSLT, but there are Microsoft newsgroups for XSL help, if you want to use that (though I'd recommend that you don't). Have a look at: http://www.netcrucible.com/xslt/msxml-faq.htm to learn about the difference. > I will try <xsl:if test>. How do I check for a value not equal to > something? Either x != y or not(x = y). The latter is more probably what you want if you are testing node sets. I think that you want: <input type="radio" name="rdoGIQ6" value="Y" onClick="disableGroup(this.form, 'txtGIQ6T', false)"> <xsl:if test="hlfr9_questions/giq6 = 'Y'"> <xsl:attribute name="checked">checked</xsl:attribute> </xsl:if> </input> <input type="radio" name="rdoGIQ6" value="N" onClick="disableGroup(this.form, 'txtGIQ6T', true)"> <xsl:if test="hlfr9_questions/giq6 = 'N'"> <xsl:attribute name="checked">checked</xsl:attribute> </xsl:if> </input> (Note: boolean attributes in HTML (e.g. <input checked>) are set by having the attribute of that name set to the name of the attribute.) I hope that helps, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] FW: Toggling radio button, Jeni Tennison | Thread | RE: [xsl] FW: Toggling radio button, Elisabeth Kaminski |
Re: [xsl] FW: Toggling radio button, Jeni Tennison | Date | [xsl] xpath expression in <xsl:styl, astockley |
Month |