[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Outputting form elements with msxsl:node-set funct

Subject: Re: Outputting form elements with msxsl:node-set function
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 17 Nov 2004 17:22:07 GMT
xml checkbox checked
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.