cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: XMLForm Schematron question
Date Thu, 27 Mar 2003 11:53:41 GMT
Siblings? Try the following:

 > <rule context="/password">
 >    <assert test="string(.) = string(following-sibling::password2 | 
preceding-sibling::password2)">
 >      Passwords do not match.
 >    </assert>
 > </rule>

If you know password2 is always after password, you can remove 
preceding-sibling::password2.

It's only a further suggestion from the XML point of view ;-)

Joerg


Delis, Christopher E. wrote:
>  
> thanks, ugo.
> 
> i finally ended up doing the same exact thing as you.  i was just hoping it
> would be possible to refer to other (sibling or ancestor) objects in my
> validation assertion.  not a huge problem.  i simply edited my
> "xmlform-to-html.xsl" to reflect the fact that the error violation has an
> attribute of ref='' instead of ref='/password'.
> 
> cheers,
> chris
> 
> -----Original Message-----
> From: Ugo Cei
> To: cocoon-users@xml.apache.org
> Sent: 3/27/03 1:51 AM
> Subject: Re: XMLForm Schematron question
> 
> Delis, Christopher E. wrote:
> 
>>i take it back!  it still doesn't work =-(
>>
>>i keep getting "Passwords do not match!" errors...
> 
> 
> I'm currently using the following:
> 
> <rule context="/">
>    <assert test="string(password1) = string(password2)">
>      Passwords do not match.
>    </assert>
> </rule>
> 
> 

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message