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 14892 - [FO3] fn:path applied to unnamed namespace node
Summary: [FO3] fn:path applied to unnamed namespace node
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0 (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
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-21 11:16 UTC by Tim Mills
Modified: 2011-12-06 18:29 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2011-11-21 11:16:45 UTC
Test path013 in QT3 covers the application of fn:path to an unnamed namespace node, but the specification doesn't appear to describe the expected behaviour.
Comment 1 Michael Kay 2011-11-23 21:47:23 UTC
Agreed, a rule for this needs to be added to the spec. For reference, the solution used in the test case is

namespace::*[local-name()=""]

which does seem to be the simplest way of selecting the unnamed namespace node (that is, the namespace node for the default namespace)
Comment 2 Michael Kay 2011-12-06 18:29:31 UTC
The WG accepted the proposal as amended, changing the result to

namespace::*["http://www.w3.org/2005/xpath-functions":local-name()=""]

so it does not depend on the default function namespace.

Change applied (draft K)