cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Le Van" <le...@arctis.com>
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}"
value="{$value}">
     <xsl:if test="$readonly='true' or $showonly='true'">
      <xsl:attribute name="readonly">true</xsl:attribute>
     </xsl:if>
     <xsl:if test="$valeurChamp=$value">
      <xsl:attribute name="checked"/>
     </xsl:if>
     <xsl:if test="$tabindex">
      <xsl:attribute name="tabindex"><xsl:value-of
select="$tabindex"/></xsl:attribute>
     </xsl:if>
    </INPUT>



-----Message d'origine-----
De : Nägeli Margrit <margrit.naegeli@ecofin.ch>
À : cocoon-users@xml.apache.org <cocoon-users@xml.apache.org>
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
>
>maggie
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


Mime
View raw message