Hi,
You can add an attribute and specify the total number of students there
but XML Schema does not have a way to check that the value of that
attribute represents the number of students. You can check that either
at application level or using Schematron embedded in XML Schema.
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com ra*******@gmail.com wrote:
I have an element declared like this :
<xs:element name="class">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="className" minOccurs="0" />
<xs:element name="students" type="student" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
Now i need an attirbute in "students" ... lets call it "totalStudents"
which would contain the number of students...is it possible ?