Subject: Re: [xsl] Outputting form elements with msxsl:node-set function From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 17 Nov 2004 17:22:07 GMT |
> If the value of the checkbox is "true" the only allowed value of the cheked attribuute is checked so you should generate checked="checked" this is the form that is required in XHTML. As you are using HTML output it will appear as just checked but that is using SGML shorthand available in HTML but not XML. in <input type="checkbox" checked> the checked is not an attribute with no value, it is an attribute value in which the atribute name has been omitted, as it can be inferred from the dtd to be, in this case, checked. You have <xsl:attribute name="Checked"/> which generates Checked="" which isn't what you want. > I have to use the msxsl:node-set function in order to create > alternating row colours. You don't appear to be sorting your input rows so I don't see any need for node-set here, you could use position() on your original for-each <xsl:for-each select="$FRM/BillerParameters/Field[@IsComment = '0']"> David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Outputting form elements with, Maria Amuchastegui | Thread | [xsl] Simple XML to XML transformat, Nick Roberts |
[xsl] Outputting form elements with, Maria Amuchastegui | Date | [xsl] Simple XML to XML transformat, Nick Roberts |
Month |