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
To: public-qt-comments@w3.org
Message-Id: <E1GCFJQ-0003xt-Le@wiggum.w3.org>


           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. :)

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

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!|'
Received on Sunday, 13 August 2006 12:43:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:13 UTC