This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Adding a chekbox with XSL


Thanks for the suggestion.  However, when it gets to
     <xsl:if test="@textValue='Y'">  <!-- checked -->

I get:

Expected token 'eof' found '='. @textValue-->=<--'Y'

Any idea why?

Lewis

>This should work :
><p align="center">
>  <xsl:value-of select="strValue"/>
>   <xsl:if test="@textValue='Y'">  <!-- checked -->
>           <input type="checkbox" align="center" checked="Y"
value="Y"/>
>   </xsl:if>
>   <xsl:if test="not(@textValue='Y')">  <!-- not checked -->
>           <input type="checkbox" align="center" value="Y"/>
>   </xsl:if>
></p>


--
Lewis Cunningham
NDS Systems
Tel : 727-538-2250
Mail: lewis@ndsapps.com
Web : www.ndsapps.com



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]