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: Input tags-more detail, not an html query honest!


At 01:53 19-06-2001, david@beaumont.as wrote:
>Okay, everyone seems to think I am having an HTML problem but it isn;t, I 
>just
>phrased the question badly, here is a smaple of code:
><xsl:for-each select="ABOOK/ANAME">
><tr>
><td><xsl:value-of select="REALNAME"/></td>
><td><xsl:value-of select="EMAIL"/></td>
><td><xsl:value-of select="NICKNAME"/></td>
>
><td>
><INPUT type='checkbox' name='frmabook' value="?????" checked='true'/>
></td>
></tr>
></xsl:for-each>
>
>I need the value of the input to be the same as the xml email value.
>How do I do this?

<INPUT type='checkbox' name='frmabook' value="{EMAIL}" checked='checked'/>

Look up "Attribute value templates" in the XSLT reference of your 
choice.  (Also note corrected "checked" attribute value.)

HTH,
Chris
-- 
Christopher R. Maden, XML Consultant
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA


 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]