[sword-svn] r170 - trunk/versification
chrislit at crosswire.org
chrislit at crosswire.org
Fri Mar 13 23:15:58 MST 2009
Author: chrislit
Date: 2009-03-13 23:15:58 -0700 (Fri, 13 Mar 2009)
New Revision: 170
Added:
trunk/versification/canon.xsd
Modified:
trunk/versification/af.xml
trunk/versification/bible.xml
trunk/versification/classical.xml
trunk/versification/lds.xml
trunk/versification/naghammadi.xml
trunk/versification/nta.xml
trunk/versification/otp.xml
trunk/versification/qumran.xml
Log:
added schema validation to canon files
Modified: trunk/versification/af.xml
===================================================================
--- trunk/versification/af.xml 2009-03-14 04:40:49 UTC (rev 169)
+++ trunk/versification/af.xml 2009-03-14 06:15:58 UTC (rev 170)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<collection>
+<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="canon.xsd">
<!-- Collection name: af -->
<!-- Apostolic Fathers -->
Modified: trunk/versification/bible.xml
===================================================================
--- trunk/versification/bible.xml 2009-03-14 04:40:49 UTC (rev 169)
+++ trunk/versification/bible.xml 2009-03-14 06:15:58 UTC (rev 170)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<collection>
+<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="canon.xsd">
<!-- Collection name: bible -->
<!-- Old Testament -->
<book>
@@ -63,7 +63,7 @@
</book>
<book>
<id>2Kgs</id>
- <abbr>2Ki</abbr>
+ <abbr>2Ki</abbr>
<name>II Kings</name>
</book>
<book>
Added: trunk/versification/canon.xsd
===================================================================
--- trunk/versification/canon.xsd (rev 0)
+++ trunk/versification/canon.xsd 2009-03-14 06:15:58 UTC (rev 170)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="name">
+ <xs:simpleType>
+ <xs:restriction base="xs:string"/>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="id">
+ <xs:simpleType>
+ <xs:restriction base="xs:string"/>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="collection">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="book" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="book">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="id"/>
+ <xs:element ref="abbr" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="name" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="abbr">
+ <xs:simpleType>
+ <xs:restriction base="xs:string"/>
+ </xs:simpleType>
+ </xs:element>
+</xs:schema>
Modified: trunk/versification/classical.xml
===================================================================
--- trunk/versification/classical.xml 2009-03-14 04:40:49 UTC (rev 169)
+++ trunk/versification/classical.xml 2009-03-14 06:15:58 UTC (rev 170)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<collection>
+<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="canon.xsd">
<!-- Collection name: classical -->
Modified: trunk/versification/lds.xml
===================================================================
--- trunk/versification/lds.xml 2009-03-14 04:40:49 UTC (rev 169)
+++ trunk/versification/lds.xml 2009-03-14 06:15:58 UTC (rev 170)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<collection>
+<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="canon.xsd">
<!-- Collection name: lds -->
Modified: trunk/versification/naghammadi.xml
===================================================================
--- trunk/versification/naghammadi.xml 2009-03-14 04:40:49 UTC (rev 169)
+++ trunk/versification/naghammadi.xml 2009-03-14 06:15:58 UTC (rev 170)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<collection>
+<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="canon.xsd">
<!-- Collection name: naghammadi -->
Modified: trunk/versification/nta.xml
===================================================================
--- trunk/versification/nta.xml 2009-03-14 04:40:49 UTC (rev 169)
+++ trunk/versification/nta.xml 2009-03-14 06:15:58 UTC (rev 170)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<collection>
+<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="canon.xsd">
<!-- Collection name: nta -->
<!-- New Testament Apocrypha -->
Modified: trunk/versification/otp.xml
===================================================================
--- trunk/versification/otp.xml 2009-03-14 04:40:49 UTC (rev 169)
+++ trunk/versification/otp.xml 2009-03-14 06:15:58 UTC (rev 170)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<collection>
+<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="canon.xsd">
<!-- Collection name: otp -->
Modified: trunk/versification/qumran.xml
===================================================================
--- trunk/versification/qumran.xml 2009-03-14 04:40:49 UTC (rev 169)
+++ trunk/versification/qumran.xml 2009-03-14 06:15:58 UTC (rev 170)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<collection>
+<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="canon.xsd">
<!-- Collection name: qumran -->
More information about the sword-cvs
mailing list