cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mygrp <>
Subject wml script
Date Fri, 22 Apr 2005 07:16:40 GMT
 im trying to validate a text field using wml script. The wml page is 
generated from an XML. This is the XML:
 <input title="User" type="text" name="mailuserid" /><br/>
<input title="Password" type="password" name="mailpassword"/><br/><br/>
<do type="accept" label="Login">
<go method="post" href="mail/mail.wml">
<postfield name="NEXT" value="VERIFY"/>
<postfield name="uid" value="$(mailuserid)"/>
<postfield name="mail-userid" value="$(mailuserid)"/>
<postfield name="mail-password" value="$(mailpassword)"/>
<postfield name="cmd" value="list-folder-messages"/>
<postfield name="folder" value="INBOX"/>
 The XSL which transforms this XML page into wml is:
<xsl:template match="site">
<card id="mail" title="Mail">
<xsl:apply-templates select="/site/mid-col-2/*"/>
<xsl:apply-templates select="/site/page:page"/>

Now i wish to check if the text entered in the username and password text 
boxes are not empty. 

How can the wml script be called ?? is it included in the xsl or the xml. 
how is the pipeline written.

any suggestions please?


View raw message