Summary: | [xpath] Need to enhance the XPath View to support XPath 2.0 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [WebTools] WTP Source Editing | Reporter: | David Carver <d_a_carver> | ||||||
Component: | wst.xpath | Assignee: | David Carver <d_a_carver> | ||||||
Status: | RESOLVED FIXED | QA Contact: | David Carver <d_a_carver> | ||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | doug.satchwell, jesper, mukul.gandhi | ||||||
Version: | unspecified | Keywords: | noteworthy, plan | ||||||
Target Milestone: | 3.2 M5 | ||||||||
Hardware: | PC | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Bug Depends on: | 261588 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
David Carver
2009-12-16 11:19:48 EST
I've added a menu item for editing the Namespaces. Next up is the selection of the XPath Parser Version to use 1.0 or 2.x Created attachment 154725 [details]
Adds rudementry support for XPath 2.0 Processor
This patch adds very rudimentry support for XPath 2.0 processor support. It defaults the processor to the PsychoPath processor by default. Need to make this a tweakable option via the View Preferences.
At the moment it only supports wrappig a ResultSequence and returning a NodeList. It doesn't support returning the other sequence types that can occur.
Jesper your thoughts and ideas on extending this to full support of the ResultSequence interface that is returned would be appreciated. I'm not checking this in just yet.
Created attachment 154726 [details]
mylyn/context/zip
The xpath view has been enhanced to allow the selection of either an XPath 1.0 or XPath 2.0 processor for executing the xpath statement. Selection of which processor is to be used is done through the View menu under the processor extension point. It leverages the command and handler framework, so adopters can add their own implementations. For XPath 2.0 this still works best with those queries that return Nodes, the result sequences are converted into a NodeList for rendering into the view. When using XPath 2.0 the expressions are not schema aware due to the fact that the WTP DOM doesn't provide the necessary PSVI infoset interfaces. Marking as fixed. checked in and tagged. |