[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Date Difference

Subject: RE: Date Difference
From: "Haarman, Michael" <mhaarman@xxxxxxxxx>
Date: Wed, 21 Dec 2005 10:09:48 -0600
xpath getting date difference
> From: Michael Kay
> > 
> > A)
> > Is there a reason the operators described within the op: 
> > namespace in the CR are not available?  I began with 
> statements like:
> > 
> > op:subtract-dates($earlier, $later)
> 
> It might be better to ask, is there any reason that the 
> operators of the
> language are specified by reference to a notional function 
> library that
> exists only for the purpose of specifying operators? The 
> answer is that
> someone thought that would be an elegant way of doing it. Readers may
> disagree.

Once I figured it out, I appreciated it as an admirable example of getting
maximal specificity out of natural language.  Only it needs highlighting
somehow.  The first clue that all is not as it seems is the lack of a
explicit URI for the op: namespace; then the two sentence clarification
occurs just at the end of 

http://www.w3.org/TR/xpath-functions/#namespace-prefixes


> "moot" in the English sense (controversial, debatable) or the 
> American sense
> (irrelevant)? (Sorry, Tommie, this is an international list 
> and we can't
> make assumptions).

Here, the American sense, but then both denotations are available on this
side of the briny, the British sense merely considered obsolete usage.  And
I think it verbs as "offer for discussion."

> Simpler still is to use format-number().


Thanks very much for all your suggestions here and under the thread:
stylesheet functions or named templates.  Just the guidance I was looking
for.


Mike

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.