XSD 1.1 assertions

2014-07-15 Thread sri shan
I am using the XSD 1.1 and trying to add assertions to the complex types.

 I have an abstract complex type and another concrete complex type
extending the abstract complex type.

 For example:

 


































 If I have more than one complex types extending from abstract-comp-type,
how do I add validation to check if all the sub types have an element named
element1?

 The reason why I need to add element1 in the sub type is to provide a
fixed value. I cannot use restriction because the sub type will have more
elements than the abstract type.


Adding XSD 1.1 assertions to a complex type

2014-07-15 Thread sshanmug
I am using the XSD 1.1 and trying to add assertions to the complex types.
 I have an abstract complex type and another concrete complex type extending
the abstract complex type.
 For example:
 















 If I have more than one complex types extending from abstract-comp-type,
how do I add validation to check if all the sub types have an element named
element1?
 The reason why I need to add element1 in the sub type is to provide a fixed
value. I cannot use restriction because the sub type will have more elements
than the abstract type.


I created a JIRA ticket for this issue and the resolution given for that is
to open a question in the forum.



--
View this message in context: 
http://apache-xml-project.6118.n7.nabble.com/Adding-XSD-1-1-assertions-to-a-complex-type-tp41267.html
Sent from the Xerces - J - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org