RE: Facets on QName, clarification required

My fault about enumeration...  This would mean that
a QName value 'pref:localname' would match a facet
'otherpref:locaname' if both prefixes 'pref' and 'otherpref'
are bound to the same URI in their respective documents...

In other words the "QualifiedName"s (value space) would
be compared.

-Anli

-----Original Message-----
From: Morris Matsa [mailto:mmatsa@us.ibm.com]
Sent: Thursday, January 17, 2002 5:43 PM
To: Anli Shundi
Cc: Xmlschema-Dev (E-mail)
Subject: 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:59:07 UTC