OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: dateTime


Looking for a simplified schema definition for a dateTime, as per XSLT
http://www.w3.org/TR/xslt20/#date-time-examples

1. Annoyance, Why can't I split up my regex onto multiple lines with comments!

2. Schema so far...

<define name="dt">
<element name='doc'>
<oneOrMore>
<element name='dateTime'>
  <data type='string'>
    <!-- [Y]-[M]-[D] -->
    <param name='pattern'>(\[Y[01]{0,4}\][^\[])?(\[M[01]{0,2}\]?[^\[])?(\[D[01]{0,1}\])?</param>
<!-- (\[D[01]{0,1}\])? -->
  </data>
</element>
</oneOrMore>
</element>
<!--

Excluded:
    YWw for 'Two thousand and ten'
    MNn   for December
    Dlo   for 31st
    DWo   for twentieth
 -->
</define>


Has anyone done this before please?


regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]