cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Le Van" <>
Subject Re: Pre-selected option in html form
Date Thu, 13 Jul 2000 12:13:50 GMT
I use xsl:attibute to check a radio button :

    <INPUT type="radio" name="{$champ}" onclick="{$onclick}"
     <xsl:if test="$readonly='true' or $showonly='true'">
      <xsl:attribute name="readonly">true</xsl:attribute>
     <xsl:if test="$valeurChamp=$value">
      <xsl:attribute name="checked"/>
     <xsl:if test="$tabindex">
      <xsl:attribute name="tabindex"><xsl:value-of

-----Message d'origine-----
De : Nägeli Margrit <>
À : <>
Date : jeudi 13 juillet 2000 13:52
Objet : Pre-selected option in html form

>I realise that my question is not directly cocoon-related, but seeing there
>are so many xsl experts on this list, I just go ahead and ask it anyway.
>I write a <form> which has a <select> element which contains various
><option> elements. One of these options (depending on selections in other
>screens or db output) has to be pre-selected. In html, this is done by
>specifying the valueless attribute "selected".
>Valueless attributes are not allowed in xml, but the useragents cannot tell
>the difference between selected="yes" and selected="no" yet.
>Has anyone encountered and solved this problem?
>Thank you
>To unsubscribe, e-mail:
>For additional commands, e-mail:

View raw message