You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Barbara Post <ba...@ifrance.com> on 2002/09/12 15:12:41 UTC

form validation

I just wonder whether I can do the following in my xsl :

The field validation can trigger 2 types of errors :
1. the field is null -> show message 1
2. the field is not null but has wrong regex syntx -> show message 2.

I just have troubles to find the documentation again... For now I have 2
error tags but both messages appear despite
<xsl:attribute name="when">is-null</xsl:attribute> or <xsl:attribute
name="when">no-match</xsl:attribute>...

Thanks


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: form validation

Posted by Barbara Post <ba...@ifrance.com>.
I solved it after restarting cocoon, it worked... Indeed I used the
SimpleFormTransformer. I also used 2 "error" tags.
----- Original Message -----
From: "Christian Haul" <ha...@dvs1.informatik.tu-darmstadt.de>
To: <co...@xml.apache.org>
Sent: Thursday, September 19, 2002 1:58 PM
Subject: Re: form validation


> On 12.Sep.2002 -- 03:12 PM, Barbara Post wrote:
> > I just wonder whether I can do the following in my xsl :
> >
> > The field validation can trigger 2 types of errors :
> > 1. the field is null -> show message 1
> > 2. the field is not null but has wrong regex syntx -> show message 2.
> >
> > I just have troubles to find the documentation again... For now I have 2
> > error tags but both messages appear despite
> > <xsl:attribute name="when">is-null</xsl:attribute> or <xsl:attribute
> > name="when">no-match</xsl:attribute>...
>
> Barbara, this looks OK to me. Documentation is in javadocs for
> SimpleFormTransformer. Sure you use the transformer?
>
> Chris.
> --
> C h r i s t i a n       H a u l
> haul@informatik.tu-darmstadt.de
>     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: form validation

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 12.Sep.2002 -- 03:12 PM, Barbara Post wrote:
> I just wonder whether I can do the following in my xsl :
> 
> The field validation can trigger 2 types of errors :
> 1. the field is null -> show message 1
> 2. the field is not null but has wrong regex syntx -> show message 2.
> 
> I just have troubles to find the documentation again... For now I have 2
> error tags but both messages appear despite
> <xsl:attribute name="when">is-null</xsl:attribute> or <xsl:attribute
> name="when">no-match</xsl:attribute>...

Barbara, this looks OK to me. Documentation is in javadocs for
SimpleFormTransformer. Sure you use the transformer?

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>