You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by mi...@sonynetservices.com on 2002/07/24 09:33:09 UTC

Schematron Validation 2

Another question:

   I also have non mandatory fields - but if
   the user gives an input I want to validate the input.
   So, is there a way in Schematron to say
   if(input is not empty)
      assert........

   Can I do something like nested asserts?

    Thanx again for any help,


     miHam


---------------------------------------------------------------------
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: Schematron Validation 2

Posted by Ivelin Ivanov <iv...@apache.org>.
Your assert can be 

test="string-length(input) = 0  or (more rules)"




----- Original Message ----- 
From: <mi...@sonynetservices.com>
To: <co...@xml.apache.org>
Sent: Wednesday, July 24, 2002 2:33 AM
Subject: Schematron Validation 2


> Another question:
> 
>    I also have non mandatory fields - but if
>    the user gives an input I want to validate the input.
>    So, is there a way in Schematron to say
>    if(input is not empty)
>       assert........
> 
>    Can I do something like nested asserts?
> 
>     Thanx again for any help,
> 
> 
>      miHam
> 
> 
> ---------------------------------------------------------------------
> 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>