Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361802

Summary: Default variable namespace – no namespace.
Product: [WebTools] WTP Source Editing Reporter: Lukasz Wycisk <lukasz>
Component: wst.xpathAssignee: Jesper Moller <jesper>
Status: RESOLVED FIXED QA Contact: Jesper Moller <jesper>
Severity: normal    
Priority: P3 CC: mukul.gandhi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch
none
Testcase none

Description Lukasz Wycisk CLA 2011-10-24 09:35:33 EDT
According to the standard
http://www.w3.org/TR/xpath20/#id-variables
β€œAn unprefixed variable reference is in no namespace.” - not in default as it is in the current implementation.
Changing test base:
AbstractPsychoPathTest:setVariable to null namespaces causes test
TestBugs:testDefNamespaceOnbuiltInTypes() to fail.
Small change in StaticNameResolver solves problem.
Comment 1 Lukasz Wycisk CLA 2011-10-24 09:36:35 EDT
Created attachment 205813 [details]
Patch

Patch file
Comment 2 Lukasz Wycisk CLA 2011-10-24 09:36:59 EDT
Created attachment 205815 [details]
Testcase
Comment 3 Jesper Moller CLA 2011-10-30 20:04:55 EDT
Patch looks good ... Reviewing and testing against HEAD and maintenance branches!
Comment 4 Jesper Moller CLA 2011-11-01 18:37:55 EDT
Applied to HEAD and 3_3_maintenance.

Mukul, if you want to port this to the 3_2 branch, please do so, if it is an issue with 3.2.
Comment 5 Jesper Moller CLA 2011-11-01 19:45:01 EDT
Comment on attachment 205815 [details]
Testcase

Oops, forgot that this MAY be relevant for 3.2 branch, so not marking as obsolete.