← Prev in month ← Prev in thread

[relax-ng] Discrepancy in treatment of pattern facet

From
John Cowan <>
Date
2002-06-18T19:01:03+00:00
ID
Thread
[relax-ng] Discrepancy in treatment of pattern facet
The XSD Guidelines says:

# If the pattern parameter is specified more than once for a single data
# element, then a string matches the data element only if it matches all
# of the patterns. It is an error to specify a parameter other than pattern
# more than once for a single data element.

But XS part 2 says:

# If multiple pattern element information items appear as children
# of a simpleType, the values should be combined as if they appeared
# in a single regular expression as separate [choice] branches.

Why this incompatibility?  RNG says "all", XSD says "any".

-- 
John Cowan <>     http://www.reutershealth.com
I amar prestar aen, han mathon ne nen,    http://www.ccil.org/~cowan
han mathon ne chae, a han noston ne 'wilith.  --Galadriel, _LOTR:FOTR_
← Prev in month ← Prev in thread