APOD.XSD version 2

Here is my version 0.02 of APOD XML schema:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- version 0.02 -->
<xs:annotation>
<xs:documentation xml:lang="en">
Schema for Astronomy Picture of the Day, especially for the Czech version at http://www.astro.cz/apod/
By Josef Chlachula, 1999-2009, All rights reserved.
</xs:documentation>
</xs:annotation>
<xs:element name="apod">
<xs:complexType>
<xs:sequence>
<xs:element name="date">
<xs:complexType>
<xs:attribute name="yyyy" type="xs:positiveInteger"/>
<xs:attribute name="mm" type="xs:positiveInteger"/>
<xs:attribute name="dd" type="xs:positiveInteger"/>
</xs:complexType>
</xs:element>
<xs:element name="layout">
<xs:complexType>
<xs:attribute name="style" type="xs:nonNegativeInteger"/>
</xs:complexType>
</xs:element>
<xs:element name="title" type="xs:string"/>
<xs:element name="keywords" type="xs:string"/>
<xs:element name="picture" type="xs:string"/>
<xs:element name="bigPicture" type="xs:string"/>
<xs:element name="credit" type="xs:string"/>
<xs:element name="explanation" type="xs:string"/>
</xs:sequence>
<xs:attribute name="lang" type="xs:string" use="required"/>
<xs:attribute name="version" type="xs:positiveInteger" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>

This entry was posted in family. Bookmark the permalink.

Leave a Reply