Can XSD elements have more than one <annotation>?
Posted
by
Scott
on Stack Overflow
See other posts from Stack Overflow
or by Scott
Published on 2010-12-30T01:20:22Z
Indexed on
2010/12/30
1:55 UTC
Read the original article
Hit count: 168
xsd
|annotations
I have a common data schema in XSD that is used by two different applications, A and B, each uses the data differently. I want to document the different business rules per application. Can I do this?
<xs:complexType name="Account">
<xs:annotation app="A">
<xs:documentation>
The Account entity must be used this way for app A
</xs:documentation>
</xs:annotation>
<xs:annotation app="B">
<xs:documentation>
The Account entity must be used this way for app B
</xs:documentation>
</xs:annotation>
<xs:complexContent>
...
© Stack Overflow or respective owner