W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2009

[XML Schema] Use case with external value list

From: Innovimax SARL <innovimax@gmail.com>
Date: Sat, 28 Mar 2009 12:45:00 +0100
Message-ID: <546c6c1c0903280445i19b3dc0n4d6506599df5dd06@mail.gmail.com>
To: www-xml-schema-comments@w3.org

Reviewing the http://www.w3.org/TR/2009/WD-xmlschema11-1-20090130/, I find
that a common use case I have cannot be handled by the current draft without
defining external functions (which I don't want to use)

I want to be able to make XPath inside an assertion to deal with a document
containing some allowed values: ZIP Code or even business specific codes

Putting them in the schema makes the schema heavy for nothing (and needs to
convert them to a schema)

This is due to
2.2.12 The statically known
the empty set.

I have two proposals :

1) allow all kind of document in the statically know documents

2) or a lesser one that is to use a register mechanism. i.e. something like
<xs:register-document href="zip-code.xml"/>, which allow to track down which
documents are reference at the top of the schema



Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Saturday, 28 March 2009 11:45:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:09 UTC