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

Bug 274740

Summary: [xpath20] YearMonthDuratio and DayTimeDuration in wrong namespace
Product: [WebTools] WTP Source Editing Reporter: David Carver <d_a_carver>
Component: wst.xpathAssignee: David Carver <d_a_carver>
Status: RESOLVED FIXED QA Contact: David Carver <d_a_carver>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.2 M1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 273760    
Bug Blocks: 273761    

Description David Carver CLA 2009-05-02 20:15:55 EDT
In the 2004 draft specification, YearMonthDuration and DayTimeDuration were in an XPath Data Type namespace, however, with the latest publication these now reside in the XML Schema Namespace, with permission from the XML Schema workgroup.

This should be a simple fix, as they just need to be added to the XML Schema type library instead of their own library.   Should rename these as well from XDT* to XS* for consistency sake.
Comment 1 David Carver CLA 2009-05-02 20:16:48 EDT
This is currently causing all unit tests to fall for op:add-yearMonthDurations.
Comment 2 David Carver CLA 2009-05-02 20:36:25 EDT
Simpliest patch is to add:

		add_type(new XDTDayTimeDuration());
		add_type(new XDTYearMonthDuration());
		
To the XSCtrLibrary class.   This allows the old way and the new way to work until the complete XQDT can be removed from the internal code.
Comment 3 David Carver CLA 2009-05-22 20:28:54 EDT
This is now fixed in head with bug 273760 being fixed.