- From: Sam Carleton <sam@linux-info.net>
- Date: Fri, 27 Jun 2003 14:00:20 -0400
- To: xmlschema-dev@w3.org
The schema I am working on contains a table. The number of rows and meaning of the rows can change. I would like to list and describe the rows in the xml and then have the schema enforce those rows in the schema. The xml might look like this where the columnDef element is the definition of the columns and the name attribute of the column element is the name of the columnDef name attribute. <?xml version="1.0" encoding="UTF-8"?> <doc> <colInfo> <columnDef name="col1">1st Column</columnDef> <columnDef name="col2">2nd Column</columnDef> <columnDef name="col3">3rd Column</columnDef> </colInfo> <data> <item> <name>an item</name> <column name="col1">something</column> <column name="col2">something</column> <column name="col3">something</column> </item> <item> <name>an item</name> <column name="col1">something</column> <column name="col2">something</column> <column name="col3">something</column> </item> <item> <name>an item</name> <column name="col1">something</column> <column name="col2">something</column> <!-- this one would be invalid because it is missing col3 --> </item> </data> </doc>
Received on Friday, 27 June 2003 14:00:22 UTC