[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On 23/04/2011 14:22, Costello, Roger L. wrote:
xs:yearMonthDuration(duration) ge xs:yearMonthDuration(P0Y)
david
Re: [xsl] XPath expression for checking that an xs:duration value is not negative?
Subject: Re: [xsl] XPath expression for checking that an xs:duration value is not negative? From: David Carlisle <davidc@xxxxxxxxx> Date: Sat, 23 Apr 2011 15:39:28 +0100 |
On 23/04/2011 14:22, Costello, Roger L. wrote:
Hi Folks,
What XPath expression will tell me if the xs:duration value in this element is not negative:
<duration>_______</duration>
/Roger
XSL F&O says: ..... Note that no ordering relation is defined on xs:duration values...
so you'll need to cast to a type that does have an ordering relation either xs:yearMonthDuration or xs:dayTimeDuration so something like
xs:yearMonthDuration(duration) ge xs:yearMonthDuration(P0Y)
david
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XPath expression for checking, Costello, Roger L. | Thread | Re: [xsl] XPath expression for chec, Brandon Ibach |
[xsl] XPath expression for checking, Costello, Roger L. | Date | Re: [xsl] XPath expression for chec, Brandon Ibach |
Month |
Keywords