W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2006

[Bug 3597] SeqExprCast-179 input valid?

From: <bugzilla@wiggum.w3.org>
Date: Sun, 13 Aug 2006 12:43:28 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1GCFJQ-0003xt-Le@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3597

           Summary: SeqExprCast-179 input valid?
           Product: XML Query Test Suite
           Version: 0.9.4
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: martin@x-hive.com
         QAContact: public-qt-comments@w3.org


SeqExprCast-179 is esentially this:

(: Purpose: 'PDT3H2M10.001S' is an invalid lexical representation for
xs:dayTimeDuration. :)
xs:dayTimeDuration("PDT3H2M10.001S")

The XQuery DM spec specifies xs:dayTimeDuration to be an extension of
xs:duration.

The given string matches the xs:duration pattern (PnYnMnDTnHnMnS, last n may be
a fraction). The restriction is specified to be: "[^YM]*[DT].*"

My mad regular expression skills and sed tell me, this is a legal value for
that restriction:
# echo PDT3H2M10.001S | sed -e 's|[^YM]*[DT].*|Matched!|'
Matched!
Received on Sunday, 13 August 2006 12:43:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:44 GMT