Re: XPath expression for checking that an xs:duration
On 23/04/2011 15:49, Brandon Ibach wrote:wouldn't it be sufficient to just check for the leading minus sign?
I think checking for a leading "-" sign (after removing leading whitespace) should do the job. But it's safest to cast explicitly to a string first, since we aren't told whether the <duration> element is typed or untyped.
Michael Kay Saxonica
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format