W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2002

Re: Constraints in XML Schema

From: Stefan Wachter <Stefan.Wachter@gmx.de>
Date: Mon, 30 Dec 2002 16:52:07 +0100 (MET)
To: Jan Mendling <mendling@web.de>
Cc: xmlschema-dev@w3.org
Message-ID: <6650.1041263527@www25.gmx.net>

Hi Jan,

maybe you can express and validate your constraints using Schematron. If you
do not care about conformance then you can also use JBind (www.jbind.org). I
augmented the XML schemas with an XPath-Constraint facility.


> Hello and merry christmas,
> I have a design problem with XML Schema. I am in the situation that it
> would be very appealing to use something like Constraints (beyond the
> uniqueness-constraints XML Schema offers with Key, Keyref and Unique).
> Therefore, I was wondering whether there are attempts being made to
> integrate a Constraint-Concept into XML Schema (something that we know
from SQL
> in the database area). In my design situation it would be nice to have
> something like Xpath-Constraints. I am thinking of an Xpath-Statement that
> evaluate TRUE in order to validate an instance document against that XML
> Schema. With such a mechanism it would be easy to build structures and
> only certain content constellations. 
> By now, I will probably fix my problem by defining a bunch of simple types
> which capture these constraints implicitly with the use of regular
> expressions. A not very elegant solution.
> Any hints on constraints in any schema-language will be appreciated. I am
> looking forward on your commends.
> Best regards, 
> Jan Mendling
> Kursiv, fett, bunt,... WEB.DE FreeMail kann alles - mit der HTML-Mail
> http://freemail.web.de/features/?mc=021143
Received on Monday, 30 December 2002 10:52:39 UTC

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