<?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>5494</bug_id>
          
          <creation_ts>2008-02-20 01:19:05 +0000</creation_ts>
          <short_desc>inherit schematron constraints from the substitution group head</short_desc>
          <delta_ts>2008-02-22 02:12:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SML</product>
          <component>Core</component>
          <version>LC</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kumar Pandit">kumarp</reporter>
          <assigned_to name="Kumar Pandit">kumarp</assigned_to>
          
          
          <qa_contact name="SML Working Group discussion list">public-sml</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19135</commentid>
    <comment_count>0</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-02-20 01:19:05 +0000</bug_when>
    <thetext>Currently the spec defines in section 6.3.1 how a complex type inherits schematron constraints from its base type definition. However, the spec does not define how an element declaration inherits schematron constraints from a substitution group head. This makes it inconsistent with the behavior of other SML constraints. All other SML constraints are inherited through substitution.

Proposal:
Update bullet# 2 in 6.3.1 as follows:

---
The value of {rules} property of a schema component is computed as follows:
1. The value of {rules} for xs:anyType is the empty set. 
2. If the schema component is a global element declaration, then the value of its {rules} is the union of its local-rules and the appropriate case from the following: 
   a. If the element declaration has a {substitution group affiliation}, then the value of {rules} of the {substitution group affiliation}.
   b. Otherwise (the element declaration has no {substitution group affiliation}), the empty set.
3. If the schema component is a complex type definition, then the value of its {rules} is the union of its local-rules and the appropriate case from the following:
   a. If {base type definition} is a complex type definition, then {rules} of the {base type definition}. This is true for derivation by extension as well as for derivation by restriction. 
   b. Otherwise ({base type definition} is a simple type definition), the empty set. 
---

Note: bullets 1 &amp; 3 are unchanged. They are shown above only to provide context.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19136</commentid>
    <comment_count>1</comment_count>
    <who name="Pratul Dublish">pratul.dublish</who>
    <bug_when>2008-02-20 01:21:44 +0000</bug_when>
    <thetext>Agree with Kumar&apos;s proposal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19171</commentid>
    <comment_count>2</comment_count>
    <who name="Virginia Smith">virginia.smith</who>
    <bug_when>2008-02-21 19:46:25 +0000</bug_when>
    <thetext>Resolution on 2/21 call is to fix per proposal; no needsReview.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19182</commentid>
    <comment_count>3</comment_count>
    <who name="Kumar Pandit">kumarp</who>
    <bug_when>2008-02-22 02:12:13 +0000</bug_when>
    <thetext>fixed as proposed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>