Hallo Ivelin , Thank u very much .... The Second Solution worked well :) ...:
<rule context="/"> <assert test="string-length(password) > 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(.) > 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) > 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" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >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(.) > 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: <[EMAIL PROTECTED]> >>For additional commands, e-mail: <[EMAIL PROTECTED]> >> >> >> > > >--------------------------------------------------------------------- >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: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>