Permalink
Browse files

Initial development of XML Schema file

  • Loading branch information...
1 parent 26b809a commit 48f2eb17482c3ac4be90ecd4fbca8ee60d3ae251 @filipesaraiva committed Apr 7, 2012
Showing with 42 additions and 0 deletions.
  1. +42 −0 saurus.xsd
View
@@ -0,0 +1,42 @@
+<!--
+ XML Schema to Saurus
+ Copyright (C) 2012, Filipe de Oliveira Saraiva (mail@filipesaraiva.info)
+ View LICENSE file to more informations about copyright note
+-->
+
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+<xs:element name="saurus" type="section" />
+
+<xs:element name="section" type="subsection">
+ <xs:attribute name="type" use="required">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="abstract"/>
+ <xs:enumeration value="introduction"/>
+ <xs:enumeration value="discussion"/>
+ <xs:enumeration value="test"/>
+ <xs:enumeration value="conclusion"/>
+ <xs:enumeration value="acknowledgement"/>
+ </xs:restriction>
+ </xs:attribute>
+</xs:element>
+
+<xs:element name="subsection" type="entry">
+ <xs:attribute name="type" use="required">
+ <xs:restriction base="xs:string">
+
+ </xs:restriction>
+ </xs:attribute>
+</xs:element>
+
+<xs:element name="entry">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="text" type="xs:string"/>
+ <xs:element name="example" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:element>
+
+</xs:schema>

0 comments on commit 48f2eb1

Please sign in to comment.