12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?xml version="1.0" encoding="UTF-8"?>
- <grammar ns="http://www.w3.org/2005/Atom" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
- <start>
- <element name="feed">
- <attribute name="xml:lang">
- <ref name="iso639"/>
- </attribute>
- <ref name="title"/>
- <ref name="link"/>
- <ref name="id"/>
- <ref name="updated"/>
- <element name="generator">
- <attribute name="uri">
- <data type="anyURI"/>
- </attribute>
- <attribute name="version"/>
- <text/>
- </element>
- <element name="author">
- <element name="name">
- <text/>
- </element>
- </element>
- <zeroOrMore>
- <element name="entry">
- <ref name="title"/>
- <ref name="id"/>
- <ref name="updated"/>
- <element name="content">
- <text/>
- </element>
- <ref name="link"/>
- </element>
- </zeroOrMore>
- </element>
- </start>
- <define name="title">
- <element name="title">
- <text/>
- </element>
- </define>
- <define name="link">
- <element name="link">
- <choice>
- <group>
- <attribute name="rel">
- <value>enclosure</value>
- </attribute>
- <attribute name="length">
- <data type="unsignedLong"/>
- </attribute>
- </group>
- <attribute name="rel">
- <data type="NCName"/>
- </attribute>
- </choice>
- <attribute name="href">
- <data type="anyURI"/>
- </attribute>
- <attribute name="type"/>
- </element>
- </define>
- <define name="id">
- <element name="id">
- <data type="anyURI"/>
- </element>
- </define>
- <define name="updated">
- <element name="updated">
- <ref name="rfc3339"/>
- </element>
- </define>
- <define name="iso639">
- <data type="NCName">
- <param name="pattern">[a-z]{2}</param>
- </data>
- </define>
- <define name="rfc3339">
- <a:documentation>http://tools.ietf.org/html/rfc3339/#section-5.6 with time-numoffset</a:documentation>
- <data type="dateTime">
- <param name="pattern">[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+\-][0-9]{2}:[0-9]{2}</param>
- </data>
- </define>
- </grammar>
|