Re: Facets on QName, clarification required

> 2. The other three facets (pattern, enumeration, whiteSpace)
> seem clearly to apply to lexical space.

You are correct that pattern applies to lexical space (see [1]: "by
constraining the lexical space").

WhiteSpace is wierd, applying to lexical space and affecting value space,
in that it really affects normalization prior to validation.

Enumeration just applies to value space (see [2]: "enumeration constrains
the value space"), so you should probably ask how enumeration applies to
QName as well.

[1] http://www.w3.org/TR/xmlschema-2/#rf-pattern
[2] http://www.w3.org/TR/xmlschema-2/#rf-enumeration

Morris


Anli Shundi <ashundi@tibco.com>@w3.org on 01/17/2002 04:19:09 PM

Sent by:    xmlschema-dev-request@w3.org


To:    "XmlSchema-Comments (E-mail)" <www-xml-schema-comments@w3.org>,
       "Xmlschema-Dev (E-mail)" <xmlschema-dev@w3.org>
cc:
Subject:    Facets on QName, clarification required



QName allows the following facets:
length, minLength, maxLength, pattern, enumeration, whiteSpace

The validation rules for length, minLength, and maxLength facets at
4.3.1.3[1], 4.3.2.3[2], 4.3.3.3 [3]--when it comes to atomic variety--
are defined only for Strings and hex/base64Binary.  (Seems to have been
inherited from earlier drafts when QName derived from Name and
that one from String...)

1. Do those three facets apply to the lexical or value space?
If the latter, then how?  The same question applies to NOTATION and
anyURI (considering encoding) types.

2. The other three facets (pattern, enumeration, whiteSpace)
seem clearly to apply to lexical space.

[1] http://www.w3.org/TR/xmlschema-2/#length-validation-rules
[2] http://www.w3.org/TR/xmlschema-2/#minLength-validation-rules
[3] http://www.w3.org/TR/xmlschema-2/#maxLength-validation-rules

Anli Shundi                      ashundi@tibco.com
Senior Developer                 office: (919) 969-6518
TIBCO Software Inc.              mobile: (919) 672-5934

www.extensibility.com  |  www.XMLschema.com  |  www.tibco.com

Received on Thursday, 17 January 2002 17:44:04 UTC