<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1231</bug_id>
          
          <creation_ts>2005-04-09 02:17:08 +0000</creation_ts>
          <short_desc>[DM] Pattern facet for ordered durations can and should be simplified</short_desc>
          <delta_ts>2007-04-04 19:07:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Data Model 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/XML/Group/2004/06/xmlschema-2/datatypes.rq20.20050408.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="Norman Walsh">Norman.Walsh</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3845</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-04-09 02:17:08 +0000</bug_when>
    <thetext>In appendix C (http://www.w3.org/TR/2005/WD-xpath-datamodel-20050404/#xdtschema),
declarations are given of the types yearMonthDuration and dayTimeDuration.

In each, a pattern facet is given which seeks (as far as I can tell) 
to provide a regular expression which defines the lexical space of 
the new types.

Since all lexical forms for values in these types must ALSO be legal 
lexical forms for the parent duration type, it&apos;s not really necessary 
to recapitulate all the constraints of that type.  The patterns 
may be simplified to &quot;[^DT]*&quot; for yearMonthDuration and 
&quot;[^YM]*(T.*)?&quot; for dayTimeDuration. (The lexical space defined by
these is the same as that defined by the current declarations,
if my work with Grail is reliable.)

If the WGs prefer to use patterns which fully capture all the
constraints on lexical forms, the bug in the dayTimeDuration
facet which allows forms like &quot;P2HS&quot; and &quot;P2H.S&quot; should
be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3738</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-04-12 23:22:37 +0000</bug_when>
    <thetext>A simpler pattern for dayTimeDuration is

  [^YM]*[DT].*&quot;

which can readily be glossed as: &quot;You have to have 
a Day field or one or more of the Time fields, 
and they must not be preceded by any Year or 
Month field.&quot;  It may be slightly easier to see
that this is correct than that &quot;[^YM]*(T.*)?&quot;
is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3769</commentid>
    <comment_count>2</comment_count>
    <who name="Norman Walsh">Norman.Walsh</who>
    <bug_when>2005-04-19 15:45:19 +0000</bug_when>
    <thetext>Andrew asked for time to review this issue at meeting 249</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3282</commentid>
    <comment_count>3</comment_count>
    <who name="Norman Walsh">Norman.Walsh</who>
    <bug_when>2005-05-17 14:21:09 +0000</bug_when>
    <thetext>Coordinate with MSM</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>