Hello Kavitha, the workflow looks not really good. Where do you store the number of failed logins? Don't pass the number of failed logins to the stylesheet but an error code, which changes after third failed login. Dependent on the error code, change the message.
Regards, Joerg kavitha ramesh wrote: > Hi, > > I have a loginpage in xml.And I would like to check > the following condition: > > when a wrong user tries to login for the first name it > should give a error message, "login failed.Try > again!".The samething should happen when the wrong > user tries to login for the second time. > > If the wrong user tries to login for the third time my > loginpage should just display a message, "Access > Denied" and it should hide the textfields for username > and password.How will my stylesheet look like? > > My xml file is as follows: > > <root> > <error times="once">login failed.Try again!</error> > <error times="twice">login failed.Try > again!</error> > <error times="thrice">Access Denied!</error> > </root> > > If someone has idea how to write the stylesheet for > the above, I would be very thankful,,, > > Kavitha. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de --------------------------------------------------------------------- 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]>