cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Printing dynamic values to value properties in HTML controls and tags.
Date Mon, 04 Jun 2001 17:46:52 GMT
try this , you'll need to modify of course

xsl fragment:

<xsl:when test="type[. = 'radio']">
             <xsl:for-each select="options/option">
               <xsl:element name="input">
                 <xsl:attribute name="name">n1</xsl:attribute>
                 <xsl:attribute name="type">radio</xsl:attribute>
                 <xsl:if test="@checked[.='true']">
                   <xsl:attribute name="checked">1</xsl:attribute>
                 <xsl:attribute name="value">
                   <xsl:value-of select="."/>
               <xsl:value-of select="."/>

xml fragment

<item name="cdm_LiveStatus">
                 <label>Live Status</label>
                 <validation active="yes" optional="yes" type=""/>
                   <option name="alive">Alive</option>
                   <option name="dead">Dead</option>

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message