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 2733 - Editorial: templates in func-g*-equal()
Summary: Editorial: templates in func-g*-equal()
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: Other Linux
: P2 minor
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 17:39 UTC by Frans Englich
Modified: 2006-09-18 10:57 UTC (History)
0 users

See Also:


Attachments

Description Frans Englich 2006-01-20 17:39:08 UTC
Hi,   
   
I find the templates in the examples for op:gMonth-equal(and similar)  
confusing/vague. Here are the templates for the various  op:g*-equal functions:  
  
* op:gYear-equal: "xxxx-01-01T00:00:00"  
* op:gMonth-equal: "1972-xx-ddT00:00:00"   
* op:gDay-equal: "1976-xx-xxT00:00:00"  
  
The template for gYear makes to me sense because the information carried by  
gYear can replace the "xxxx" part. However, gMonth have an empty day property,  
and therefore cannot fill the "dd" part, only the "xx" part. Same applies for  
gDay, but reversed.  
    
    
Cheers,    
 Frans
Comment 1 Ashok Malhotra 2006-02-02 00:33:28 UTC
Changed the templates to:
* op:gMonth-equal: "1972-xx-29T00:00:00"   
* op:gDay-equal: "1976-12-xxT00:00:00"  

The template for op:gMonth-equal must accomodate any month
in the given year.

Please re-check the examples.