This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20732 - [XT3TS] import-schema-177
Summary: [XT3TS] import-schema-177
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2013-01-22 12:11 UTC by Tim Mills
Modified: 2013-02-05 16:59 UTC (History)
1 user (show)

See Also:


Description Tim Mills 2013-01-22 12:11:05 UTC
There's something wrong with this test, but I can'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.

   <test-case name="import-schema-177">
         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.
      <created by="Michael Kay" on="2012-10-30"/>
         <source role=".">
         <schema role="stylesheet-import" file="schema002.xsd" xsd-version="1.0"/>
         <schema role="secondary" file="schema177a.xsd" xsd-version="1.0"/>
         <spec value="XSLT20+"/>
         <feature value="schema_aware"/>
         <stylesheet file="import-schema-177.xsl"/>
         <stylesheet file="import-schema-177.xsl"/>
            <assert>/out/elem/text()[1] = "true * true * "</assert>
            <assert xmlns:foo="">/out/elem/foo:complexTest[@foo:type="333"][subject="math"][size="50"]</assert>
            <assert>/out/attrib = "true * 444"</assert>
Comment 1 Michael Kay 2013-02-04 23:28:03 UTC
I think I'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.
Comment 2 Tim Mills 2013-02-05 16:59:37 UTC