<?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>20732</bug_id>
          
          <creation_ts>2013-01-22 12:11:05 +0000</creation_ts>
          <short_desc>[XT3TS] import-schema-177</short_desc>
          <delta_ts>2013-02-05 16:59:37 +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 3.0 Test Suite</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Tim Mills">tim</reporter>
          <assigned_to name="Abel Braaksma">abel.online</assigned_to>
          <cc>mike</cc>
          
          <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>81927</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-01-22 12:11:05 +0000</bug_when>
    <thetext>There&apos;s something wrong with this test, but I can&apos;t tell what.

It references the same stylesheet twice.

If it meant to reference import-schema-177a.xsl as a secondary stylesheet, its environment should include schema schema177a.xsd in its environment.  

Neither 177.xsl nor 177a.xsl reference schema002.xsd in the schema location hints.

   &lt;test-case name=&quot;import-schema-177&quot;&gt;
      &lt;description&gt;
         Test for importing two different schemas with the same @namespace but different import precedence. 
         Cases tested: 
         - elements, attributes or types with the same names but different properties exist in the two schemas 
         - elements, attributes or types with different names exist in the two schemas.
      &lt;/description&gt;
      &lt;created by=&quot;Michael Kay&quot; on=&quot;2012-10-30&quot;/&gt;
      &lt;environment&gt;
         &lt;source role=&quot;.&quot;&gt;
            &lt;content&gt;&lt;![CDATA[&lt;doc/&gt;]]&gt;&lt;/content&gt;
         &lt;/source&gt;
         &lt;schema role=&quot;stylesheet-import&quot; file=&quot;schema002.xsd&quot; xsd-version=&quot;1.0&quot;/&gt;
         &lt;schema role=&quot;secondary&quot; file=&quot;schema177a.xsd&quot; xsd-version=&quot;1.0&quot;/&gt;
      &lt;/environment&gt;
      &lt;dependencies&gt;
         &lt;spec value=&quot;XSLT20+&quot;/&gt;
         &lt;feature value=&quot;schema_aware&quot;/&gt;
      &lt;/dependencies&gt;
      &lt;test&gt;
         &lt;stylesheet file=&quot;import-schema-177.xsl&quot;/&gt;
         &lt;stylesheet file=&quot;import-schema-177.xsl&quot;/&gt;
      &lt;/test&gt;
      &lt;result&gt;
         &lt;all-of&gt;
            &lt;assert&gt;/out/type=&quot;8006&quot;&lt;/assert&gt;
            &lt;assert&gt;/out/elem/text()[1] = &quot;true * true * &quot;&lt;/assert&gt;
            &lt;assert xmlns:foo=&quot;http://ns.example.com/sch002&quot;&gt;/out/elem/foo:complexTest[@foo:type=&quot;333&quot;][subject=&quot;math&quot;][size=&quot;50&quot;]&lt;/assert&gt;
            &lt;assert&gt;/out/attrib = &quot;true * 444&quot;&lt;/assert&gt;
         &lt;/all-of&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82552</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-02-04 23:28:03 +0000</bug_when>
    <thetext>I think I&apos;ve managed to sort this out. The two stylesheets documents are import-schema-177.xsl and import-schema-177a.xsl, and the two schema documents are schema002.xsd and schema177a.xsd. I have amended the metadata accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82592</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-02-05 16:59:37 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>