You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ivelin Ivanov <iv...@apache.org> on 2002/09/25 02:30:43 UTC

[SUMMARY] Re: Schematron question

Glad it worked for you.


----- Original Message -----
From: "Mohamed El-Refaey" <m....@imkenberg.de>
To: <co...@xml.apache.org>
Sent: Tuesday, September 24, 2002 2:10 PM
Subject: Re: Schematron question


> Hallo Ivelin ,
> Thank u very much .... The Second Solution worked well :) ...:
>
> <rule context="/">
>              <assert test="string-length(password) &gt; 7">
>                  The Password Should be @ least 8 character.
>              </assert>
>              <assert test="password == passwordConfirm">
>                  The Password Should be the same as before.
>              </assert>
>  </rule>
>
> but Note that it must be only one equal sign not 2   i.e
test="password=passwordConfirm"
>
> Thank u Ivelin
>
> Mohamed
>
>
>
>
>
> Ivelin Ivanov wrote:
>
> >How about:
> >
> >
> > <rule context="/password">
> >             <assert test="string-length(.) &gt; 7">
> >                 The Password Should be @ least 8 character.
> >             </assert>
> > </rule>
> > <rule context="/passwordConfirm">
> >             <assert test="../password == .">
> >                 The Password Should be the same as before.
> >             </assert>
> > </rule>
> >
> >If this still doesn't work, try
> >
> >
> > <rule context="/">
> >             <assert test="string-length(password) &gt; 7">
> >                 The Password Should be @ least 8 character.
> >             </assert>
> >             <assert test="password == passwordConfirm">
> >                 The Password Should be the same as before.
> >             </assert>
> > </rule>
> >
> >
> >
> >----- Original Message -----
> >From: "Mohamed El-Refaey" <m....@imkenberg.de>
> >To: <co...@xml.apache.org>
> >Sent: Monday, September 23, 2002 6:42 PM
> >Subject: Schematron question
> >
> >
> >
> >
> >>Hi all
> >>
> >>I have a question related to Schematron validation :
> >>How I can validate a 2 Text box in XMLForm values that they are
> >>identical for example (a password should be entered twice by the user
> >>and it must be identical in both field)
> >>
> >>I tried to write the Rule in the schematron validation file as follow
> >>but it didn't work well :
> >>
> >><rule context="/password">
> >>            <assert test="string-length(.) &gt; 7">
> >>                The Password Should be @ least 8 character.
> >>            </assert>
> >>        </rule>
> >>        <rule context="/passwordConfirm">
> >>            <assert test="./password != .">
> >>                The Password Should be the same as before.
> >>            </assert>
> >>        </rule>
> >>
> >>also I tried :
> >>
> >>            <rule context="/passwordConfirm">
> >>            <assert test="./password !=/passwordConfirm">
> >>                The Password Should be the same as before.
> >>            </assert>
> >>        </rule>
> >>
> >>but unfortunately I have no result ..
> >>
> >>any body tried this before ?
> >>
> >>Thanx in advance
> >>
> >>
> >>---------------------------------------------------------------------
> >>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>
> >
> >
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> 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>