W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2003

Content Constraints in Table Rows

From: Daniel Brauer <daniel.brauer2@img-online.de>
Date: Tue, 15 Apr 2003 09:05:21 +0200
To: <xmlschema-dev@w3c.org>
Message-ID: <NGBBJJLECLBJBAPCALMKEEDJCEAA.daniel.brauer2@img-online.de>

Hi folks,

I have a question concerning a schema for storage of table based data in

We'd like to store data in a structure like this:
<tablename type="table">

While this looks simple I need a schema to check the contents of one (or
more) column elements to have certain values or be within a range of values
(mostly numeric) for certain rows respectively.
Lets say the first column must begin with (1st row) "0" and end with (last
row) "1". All intermediate rows must contain values >"0" and <"1".
To achieve this we have now defined three different types of rows, like
"firstRow", "middleRow", and "lastRow". However, I have a feeling that this
is not the most elegant way.

So is it possible to define a single type "Row" type with an attribute like
"position" which can be "first"/"middle"/"last" and use it to check the

I'd appreciate any help, thanks.

Received on Tuesday, 15 April 2003 03:04:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:10 UTC