public
Description: (Unofficial) RELAX NG schema to specify the construction and meaning of OPML 1.0 and 2.0 documents.
Clone URL: git://github.com/tommorris/opml-schema.git
created rfc_822_opml_rx, a string pattern to match RFC 822 date formats
tommorris (author)
Tue Feb 19 13:38:43 -0800 2008
commit  5f6be86fad7e4f28887b875075fb060afb1b9de2
tree    1446ab030ff579c91e5600b8bec92954429d7736
parent  9ef7c82629307242d0660c524c66d3606514a575
...
48
49
50
51
52
 
53
54
55
56
57
58
59
 
60
61
62
...
158
159
160
161
162
 
163
164
165
...
278
279
280
281
 
282
283
284
285
286
287
 
288
289
290
...
298
299
300
 
 
 
 
 
301
...
48
49
50
 
 
51
52
53
54
55
56
 
 
57
58
59
60
...
156
157
158
 
 
159
160
161
162
...
275
276
277
 
278
279
280
281
282
283
 
284
285
286
287
...
295
296
297
298
299
300
301
302
303
0
@@ -48,15 +48,13 @@
0
         <optional>
0
           <element name="dateCreated">
0
             <a:documentation xml:lang="en">A date-time, indicating when the document was created.</a:documentation>
0
-<!-- <data type="dateTime" /> -->
0
- <data type="string" />
0
+ <ref name="rfc_822_opml_rx" />
0
           </element>
0
         </optional>
0
         <optional>
0
           <element name="dateModified">
0
             <a:documentation xml:lang="en">A date-time, indicating when the document was last modified.</a:documentation>
0
- <!-- <data type="dateTime" /> -->
0
- <data type="string" />
0
+ <ref name="rfc_822_opml_rx" />
0
           </element>
0
         </optional>
0
         <optional>
0
@@ -158,8 +156,7 @@
0
     <optional>
0
       <attribute name="created">
0
         <a:documentation xml:lang="en">The date and time that the outline node was created. Follows RFC 822 (eg. "Sat, 09 Apr 2007 14:57:36 GMT").</a:documentation>
0
- <!-- <data type="dateTime" /> -->
0
- <data type="string" />
0
+ <ref name="rfc_822_opml_rx" />
0
       </attribute>
0
     </optional>
0
   </define>
0
@@ -278,13 +275,13 @@
0
       <optional>
0
         <attribute name="whenFirstPlayed">
0
           <a:documentation xml:lang="en">The time/date the song was played for the first time.</a:documentation>
0
- <data type="dateTime" />
0
+ <ref name="rfc_822_opml_rx" />
0
         </attribute>
0
       </optional>
0
     <optional>
0
       <attribute name="whenLastPlayed">
0
         <a:documentation xml:lang="en">The time/date that the song was played most recently.</a:documentation>
0
- <data type="dateTime" />
0
+ <ref name="rfc_822_opml_rx" />
0
       </attribute>
0
     </optional>
0
     <optional>
0
@@ -298,4 +295,9 @@
0
       <param name="pattern">[\-+]?(\d+|\d+(\.\d+)?%)(,\s?(\d+|\d+(\.\d+)?%))*</param>
0
     </data>
0
   </define>
0
+ <define name="rfc_822_opml_rx">
0
+ <data type="string">
0
+ <param name="pattern">^((Mon|Tue|Wed|Thur|Fri|Sat|Sun), )?(\d+) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{2,4}) (\d{2}):(\d{2})(:(\d{2})?) (\S{1,4}|(\+|\-)\d{4})$</param>
0
+ </data>
0
+ </define>
0
 </grammar>

Comments

    No one has commented yet.