xsl and checkbox checked. (Not interractive)

Larry Brister
Larry Brister used Ask the Experts™
on
I am creating output only and I need a checkbox that is checked or not

So...the element will have either a 1 or a 0

I need to show a checkbox that is checked where = 1

<xsl:value-of select="compactLicense"/
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Information Architect
Top Expert 2006
Commented:
<input type="checkbox" >
<xsl:if test="compactLicense = 1">
<xsl:attribute name="checked">
<xsl:text>checked</xsl:text>
</xsl:attribute>
</xsl:if>
</input>
Gertone (Geert Bormans)Information Architect
Top Expert 2006

Commented:
you need to add name etc. yourself actually
Larry Bristersr. Developer

Author

Commented:
Great!  And I have one final follow-up coming
Gertone (Geert Bormans)Information Architect
Top Expert 2006

Commented:
welcome

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial