cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Högqvist <hogqv...@hotmail.com>
Subject Auth taglib with WML
Date Thu, 12 Apr 2001 09:54:39 GMT
Greetings!

I have a site that is supposed to show different features of cocoon for my colleges. There
I have a login-form that uses auth taglib (with jdbctable). Now I want to do a WAP-version
of this site, but I don't know how to convert the login-form so it matches WML syntax.

Here is the form in the xsl stylesheet for html:
<xsl:template match="form">
 <p>
 <form action="{@url}" method="POST">
 <table>
   <xsl:apply-templates/>
   <tr><td colspan="2" align="center">
   <input type="submit" name="authlogin" value="{@authlogin}"/>
   <input type="hidden" name="authlogin" value=""/>
   </td></tr>
 </table>
 </form>
 </p>
</xsl:template>

<xsl:template match="forminputfield">
 <tr>
 <td align="left"><xsl:value-of select="name"/>:</td>
 <td align="right">
 <xsl:variable name="type">
  <xsl:choose>
   <xsl:when test="@type"><xsl:value-of select="@type"/></xsl:when>
   <xsl:otherwise>password</xsl:otherwise>
  </xsl:choose>
 </xsl:variable>
 <input type="{$type}" name="{param}" size="30" value=""/>
 </td>
 </tr>
</xsl:template>

Is there someone that can help me?

/Anders Högqvist

Mime
View raw message