I think your default formatter in cocoon.properties is text/html.

change it to text/xhtml in  cocoon.properties:

formatter.default = text/xhtml

Then you can write:

<SELECT name="country">
        <xsl:for-each select="profil/countries/country">
          <xsl:choose>
            <xsl:when test="$disabled='ok'"
                <OPTION value="{iso_codeCountry}" disabled="" />
            <xsl:when>
            <xsl:otherwise>
                <OPTION value="{iso_codeCountry}" />
            </xsl:otherwise>
          </xsl:choose>
</SELECT>

For radio:

    <input type="radio" name="{name}" value="{value}" checked="" />


Julien.Giovannoni> 
Julien.Giovannoni> Sorry the same mail but more visible
Julien.Giovannoni> 
Julien.Giovannoni> Hi,
Julien.Giovannoni> 
Julien.Giovannoni> I encoured problems with dynamic variable in a xsl sheet!
Julien.Giovannoni> 
Julien.Giovannoni> ie: with an <OPTION ...> form for a >SELECT> form
Julien.Giovannoni> 
Julien.Giovannoni> 
Julien.Giovannoni> this code match, ok
Julien.Giovannoni> 
Julien.Giovannoni> <SELECT name="country">
Julien.Giovannoni> <xsl:for-each select="profil/countries/country">
Julien.Giovannoni> <OPTION value="{iso_codeCountry}" >
Julien.Giovannoni> <xsl:apply-templates select="nameCountry"/>
Julien.Giovannoni> </OPTION>
Julien.Giovannoni> </xsl:for-each>
Julien.Giovannoni> </SELECT>
Julien.Giovannoni> 
Julien.Giovannoni> but how insert the variable DISABLED here: 
Julien.Giovannoni> 
Julien.Giovannoni> <OPTION value="{iso_codeCountry}" DESABLED>...
Julien.Giovannoni> 
Julien.Giovannoni> cocoon doesn't approve this way: 
Julien.Giovannoni> 
Julien.Giovannoni> <OPTION value="{iso_codeCountry}" {disabledTag} >...
Julien.Giovannoni> 
Julien.Giovannoni> 
Julien.Giovannoni> the error is:
Julien.Giovannoni> 
Julien.Giovannoni> org.apache.cocoon.processor.ProcessorException: Could not associate
Julien.Giovannoni> stylesheet to document:  error reading file:/d:/program files/apache
Julien.Giovannoni> group/apache/htdocs/agenda/fr/modules/screens/screen_1.xsl:
Julien.Giovannoni> org.xml.sax.SAXParseException: Element type "OPTION" must be 
followed by
Julien.Giovannoni> either attribute specifications, ">" or "/>".
Julien.Giovannoni> 
Julien.Giovannoni> I understand the cause of this error but I don't know how to do  to
Julien.Giovannoni> match it!
Julien.Giovannoni> 
Julien.Giovannoni> Same problem with tag RADIO !
Julien.Giovannoni> 
Julien.Giovannoni> If somebody know a (the?) solution, thanks to help me!
Julien.Giovannoni> 


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to