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

Re: unconsistent union of patterns

From: Jeni Tennison <jeni@jenitennison.com>
Date: Sat, 4 May 2002 14:14:06 +0100
Message-ID: <451052592688.20020504141406@jenitennison.com>
To: michael coburn <miccob087@yahoo.com>
CC: xmlschema-dev@w3.org
Hi Michael,

> 1) I like the derivation pattern process ".+\.com" because I can
> also use it for ".+\.(com|gov|edu|net|org)". It would be nice if
> (com|..|org) could be a list type I could refer to, but I guess no
> combination of pattern and type, so far?

No. You'd either have to go outside XML Schema for that, or change the
way you represent email addresses, so that the com/org/gov etc. parts
are held in a separate element or attribute.

> 3) I was awkwardly using ^, what I meant was: "[^a]@[^b]\.com" but
> anyway as you acutely highlighted: no antipattern facet nor no but.
> Do you know if w3c is thinking about antipattern or but? I
> understand that the implementation is not elementary because of the
> semantical consistency check but not impossible because already
> implemented in languages like Prolog or any languages based on Horn
> Clauses.

It does sound as if something like an anti-pattern facet would be
useful. The W3C is still soliciting suggestions for XML Schema 1.1, so
perhaps you should write to www-xml-schema-comments@w3.org with the
suggestion and your use case.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Saturday, 4 May 2002 09:14:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC