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 space1a new user can create a monitoring space12- 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:
invalidhttp://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.