cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: fi:booleanfield[fi:styling/@type='output']
Date Mon, 26 Apr 2004 21:36:25 GMT
Bruno Dumon wrote:

>I saw the following template in forms-field-styling.xsl:
>
>  <!--+
>      | fi:booleanfield with @type 'output' : rendered as text
>      +-->
>  <xsl:template match="fi:booleanfield[fi:styling/@type='output']">
>    <xsl:choose>
>      <xsl:when test="fi:value = 'true'">
>        yes
>      </xsl:when>
>      <xsl:otherwise>
>        no
>      </xsl:otherwise>
>    </xsl:choose>
>  </xsl:template>
>
>And was wondering what people are using this for? Or how this can
>possibly do something meaningful?
>
>The problem I see is that if a booleanfield is not present on the
>request, it will always be reset to false. So I'd rather remove this
>template then giving people the false impression this might work.
>  
>

+1, furthermore considering that the yes/no isn't i18nized.

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }


Mime
View raw message