Hi,
Your schema has quite a large number of structural problems - keys
within complex types instead of elements, complex types with type
attributes, complex types directly within choice groups, etc.
I'm assuming this is because you cut down the example to be concise, but
it makes it awfully hard to debug the problem when it's not a valid
schema.
Your general approach looks right to me. It could be a namespace issue
- if you're using a target namespace, you must prefix all your element
names in your XPaths. It could also be a problem with your XML Editor,
since some of them are buggy when it comes to identity constraints.
Otherwise, you could post the real schema and we could take a look at
it.
Hope that helps,
Priscilla
----------------------------------
Priscilla Walmsley
Author, Definitive XML Schema
Definitive XQuery
http://www.datypic.com
----------------------------------
*** Sent via Developersdex
http://www.developersdex.com ***