<?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>2726</bug_id>
          
          <creation_ts>2006-01-18 20:46:26 +0000</creation_ts>
          <short_desc>[XSLT] Restrictions on [xsl:]type for elements</short_desc>
          <delta_ts>2006-02-02 20:07:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 2.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joanne Tong">joannet</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7871</commentid>
    <comment_count>0</comment_count>
    <who name="Joanne Tong">joannet</who>
    <bug_when>2006-01-18 20:46:27 +0000</bug_when>
    <thetext>The first bullet of section 19.2.1.2 indicates that the type specified in [xsl:]
type is used as the &quot;processor-stipulated type definition&quot; in applying the 
rules in section 3.3.4 &quot;Element Declaration Validation Rules&quot;, validation 
rule &quot;Schema-Validity Assessment (Element)&quot;, clauses 1.2 and 2.  Subclause 
1.2.1.1 refers to section 5.2 of the Schema Structures spec.  The first item in 
the numbered list in 5.2 indicates that the type identified by the user or 
application should be a complex type definition.

XSLT 2.0 defines ERR XTSE1530 if the [xsl:]type for an attribute refers to a 
complex type.  However, there is no corresponding error if the [xsl:]type for 
an element refers to a simple type.

The XSL WG should track bug 2723 (http://www.w3.org/Bugs/Public/show_bug.cgi?
id=2723) to get Schema&apos;s view on this.  If Schema relaxes the requirement, no 
change is required to XSLT; otherwise, XSLT needs a static error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8114</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-02-02 20:06:54 +0000</bug_when>
    <thetext>Resolved to address this with a note at the end of the first bullet:

It is not an error if the identified type definition is a simple type, although
&lt;bibref ref=&quot;xmlschema-1&quot;/&gt; does not define explicitly that this case is permitted.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>