validation against schema: problem with key and ref attribute

View: New views
1 Messages — Rating Filter:   Alert me  

validation against schema: problem with key and ref attribute

by geiser ch. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all I have the impression that there is some issues re validation. So far, I cannot enforce the uniqueness of a “key”, neither can I use “ref” for an attribute. Could someone tell me what I am doing wrong? 1 – My simplified schema looks like: In this situation, an xml document like the following should not be accepted as its rule[@id] attribute is not unique. This does not seem to work (I can save the document (with validation mode = auto) or validate it against the function validate-report): a new user can create a monitoring space 1 a new user can create a monitoring space 1 2- ref If I change the line (at the end of the schema) to and add in the schema, my document would not validate. Instead, the validate-report function brings the following message: invalid http://www.e-Smile.org/entity/rule/ cvc-complex-type.3.2.2: Attribute 'id' is not allowed to appear in element 'rule'. Cheers Christophe

View this message in context: validation against schema: problem with key and ref attribute
Sent from the exist-open mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open
LightInTheBox - Buy quality products at wholesale price