[Bug 2178] R-184: Question about pattern and union types

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2178

           Summary: R-184: Question about pattern and union types
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


Is it clear what string the pattern facet of a union type applies to? 

It seems to me it should be the lexical space value of the winning type in the 
union, i.e. when processing an item with a union type, we go directly to the 
member type definitions, and for each one in turn: 

1. normalize per the whiteSpace facet _of that member type defn_; 
2. check the pattern facet of the union type itself; 
3. check the pattern facet of the member type defn; 
4. convert to value and check other facets from the member type defn. 

If any of (2), (3) or (4) fail, go on to the next member type defn. 

I don't think the REC as it currently stands makes clear that this is what 
happens, or that it doesn't.

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002OctDec/0060.html

Received on Wednesday, 14 September 2005 18:42:11 UTC