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 14827 - [FO30] path005
Summary: [FO30] path005
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL: http://www.w3.org/XML/Group/qtspecs/s...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 17:25 UTC by Tim Mills
Modified: 2011-11-17 14:31 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2011-11-14 17:25:52 UTC
This test expects

@"":idref

as the final part of the result.

Fron:

http://www.w3.org/XML/Group/qtspecs/specifications/xpath-functions-30/html/Overview.html#func-path

"For an attribute node:

    if the node is in no namespace, @{local}, where {local} is the local part of the node name"

Shouldn't this therefore be just

@idref

that is,

<assert-string-value>/"http://www.w3.org/2010/09/qt-fots-catalog":test-set[1]/"http://www.w3.org/2010/09/qt-fots-catalog":link[1]/@idref</assert-string-value>

  <test-case name="path005">
      <description>path() applied to no-namespace attribute</description>
      <created by="Michael Kay" on="2011-06-08"/>
      <environment ref="pathdata"/>
      <test>fn:path((//@idref)[1])</test>
      <result>
         <all-of>
            <assert-string-value>/"http://www.w3.org/2010/09/qt-fots-catalog":test-set[1]/"http://www.w3.org/2010/09/qt-fots-catalog":link[1]/@"":idref</assert-string-value>
            <assert-type>xs:string</assert-type>
         </all-of>
      </result>
   </test-case>
Comment 1 Michael Kay 2011-11-17 10:47:06 UTC
Corrected the expected results of the test.
Comment 2 Tim Mills 2011-11-17 14:31:26 UTC
Confirmed fixed.  Thanks.