cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Becker <jonnybec...@gmx.net>
Subject <fd:submit - How to access from xsl?
Date Tue, 14 Jun 2005 14:22:01 GMT
Hi,

I've got an xsl that is doing the styling, depending of the kind of widget:

<xsl:for-each select="fi:widgets/*">
       <xsl:choose>
                <xsl:when test="local-name(.) = 'field'">
                    <dothis/>
                </xsl:when>
                <xsl:when test="local-name(.) = 'submit'">
                     <dothat/>
                </xsl:when>
                ...

Somehow the <xsl:when test="local-name(.) = 'submit'">  doesn't work. 
Field widgets are "found", but submit-widgets aren't.

The forms definition-file:
...
<fd:field id="username" required="true">
      <fd:label>Username:</fd:label>
      <fd:datatype base="string"/>
</fd:field>
<fd:submit id="login" required="false">
      <fd:label>Login</fd:label>
</fd:submit>

The forms template-file:
...
<fi:group>
       <fi:widgets>
           <ft:widget id="username">
                    <fi:styling size="20"/>
           </ft:widget>          
            <ft:widget id="login"/>
      </fi:widgets>
</fi:group>

Somehow I couldn't spot the error. Any idea what I'm doing wrong?

Cheers
Jonny

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message