<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2247</bug_id>
          
          <creation_ts>2005-09-14 19:45:17 +0000</creation_ts>
          <short_desc>R-255: Value of pattern facet</short_desc>
          <delta_ts>2007-03-29 18:49:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Datatypes: XSD Part 2</component>
          <version>1.0 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsAgreement</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>1929</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="XML Schema WG">w3c-xml-schema-wg</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6278</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:45:17 +0000</bug_when>
    <thetext>How are multiple pattern facet children represented in the schema component 
infoset? The pattern facet schema component has a value which is a regular 
expression. So presumably, that value is the disjunction of all patterns among 
the children. Is that so? How is the disjunction written? &quot;p1|p2|p3&quot;, for 
instance? 

What about pattern facets at different levels in the derivation? The rec says 
they are effectively ANDed together, but how is that represented in the schema 
infoset, as there is no conjunction operator in the regex language? Is the 
schema processor to figure out the conjunction? Or do the base and derived 
patterns stay separate, with the processor required to walk the base chain for 
the ANDing? Or are there multiple pattern facets in the component model? I&apos;m 
guessing the patterns at different derivation steps stay separate, but it&apos;s 
only a guess. 

Relevant part of rec (part 2): 

Schema Representation Constraint: Multiple patterns 
If multiple &lt;pattern&gt; element information items appear as [children] of a 
&lt;simpleType&gt; the [value]s should be combined as if they appeared in a single 
regular expression as separate branches. Note: It is a consequence of the 
schema representation constraint Multiple patterns (4.3.4.3) and of the rules 
for restriction that pattern facets specified on the same step in a type 
derivation are ORed together, while pattern facets specified on different steps 
of a type derivation are ANDed together. 

Related member-only thread: Facet equality: questions/issues
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2004Mar/0187.html 

See
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2004AprJun/0001.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6299</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-15 17:03:07 +0000</bug_when>
    <thetext>Looks like too big a change for 1.0 to straighten this out. Propose to handle 
it in 1.1.

We may want to refer to bug 1929, which is about the same issue in the context 
of 1.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6328</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-09-16 15:56:00 +0000</bug_when>
    <thetext>We discussed this briefly during the call of 2005-09-16, and
agreed that we will discuss the correct way to reword the
spec, when we resolve issue 1929.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6332</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-09-16 17:51:06 +0000</bug_when>
    <thetext>In our telcon of 16 September 2005 the WG classified
this item as a &apos;clarification requiring corrigendum&apos;.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>