W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2016

[Bug 29379] New: [XT30] mode-1701 expects success, but should probably fail with XTDE0045

From: <bugzilla@jessica.w3.org>
Date: Sun, 17 Jan 2016 18:56:26 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29379-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29379

            Bug ID: 29379
           Summary: [XT30] mode-1701 expects success, but should probably
                    fail with XTDE0045
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0 Test Suite
          Assignee: abel.online@xs4all.nl
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

The stylesheet for this test is:

<xsl:package
  package-version="1.0.0"
  version="3.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  exclude-result-prefixes="xs"
  default-mode="a">

  <xsl:mode name="a"/>

  <xsl:template match="/">
    <ok/>
  </xsl:template>

</xsl:package>   

And the test metadata specifies:

<test-case name="mode-1701">
   <description>Test attribute default-mode on package element</description>
   <created by="Debbie Lockett" on="2015-09-07"/>
   <environment ref="mode-01"/>
   <dependencies>
      <spec value="XSLT30+"/>
   </dependencies>
   <test>
      <package file="mode-1701.xsl" role="principal"/>
      <initial-mode name="a"/>
   </test>
   <result>
      <assert>/ok</assert>
   </result>
</test-case>

In other words: an initial mode is given *outside* the scope of the package.
Even though the package defines a default mode, this is irrelevant, as an
initial mode is given.

Since the initial mode here is private by default (absent visibility
attribute), it cannot be found. Therefore the test should fail with an XTDE0045
error.

Alternatively, the stylesheet invocation should not specify an initial mode, in
which case the default mode on xsl:package takes over. Since now the default
mode is "in scope", the test would succeed.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 17 January 2016 18:56:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:57 UTC