[osis-core] Schema sample attached

Patrick Durusau osis-core@bibletechnologieswg.org
Tue, 04 Jun 2002 09:04:15 -0400


This is a multi-part message in MIME format.
--------------050309060904090200070409
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Guys,

Sorry, forgot to attach.

Patrick

-- 
Patrick Durusau
Director of Research and Development
Society of Biblical Literature
pdurusau@emory.edu


--------------050309060904090200070409
Content-Type: text/xml;
 name="regex3.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="regex3.xml"

<?xml version="1.0" encoding="UTF-8"?>
<text xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\downloads\osis-current\regex\regex3.xsd">
  <body>
        <p>Matt.1.1</p>
        <p>TEV.Matt.1.1</p>
  </body>
</text>

--------------050309060904090200070409
Content-Type: text/plain;
 name="regex3.xsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="regex3.xsd"

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

	elementFormDefault="unqualified">



<xs:element name="text">

	<xs:complexType>

		<xs:sequence>

			<xs:element ref="body" minOccurs="1" maxOccurs="1"/>

		</xs:sequence>

	</xs:complexType>

</xs:element>



<xs:element name="body">

	<xs:complexType>

		<xs:sequence>

			<xs:element ref="p" minOccurs="1" maxOccurs="unbounded"/>

		</xs:sequence>

	</xs:complexType>

</xs:element>



<xs:element name="p" type="refBase"/>



<xs:simpleType name="refBase">

	       <xs:restriction>

	          <xs:simpleType>

	             <xs:restriction base="xs:string">

	                <xs:pattern value="([^\s]*\.){0,6}([^\s]*)"/>

	             </xs:restriction>

                   </xs:simpleType>

                  <xs:pattern value="(TEV\.(\d*)\.(\d*))"/>

               </xs:restriction>

</xs:simpleType>



<!-- <xs:simpleType name="osisRef">

	       <xs:restriction base="xs:string">

			  <xs:pattern value="(([^\s]*\.){0,6}([^\s]*))(@((char:(\d*)\+(\d*)\((.*)\))|((x-(\c*):)(.*)\((.*)\)))|(-@((char:(\d*)\+(\d*)\((.*)\))|((x-(\c*):)(.*)\((.*)\))))?)?((-(([^\s]*\.){0,6}([^\s]*)))(@((char:(\d*)\+(\d*)\((.*)\))|((x-(\c*):)(.*)\((.*)\)))|(-@((char:(\d*)\+(\d*)\((.*)\))|((x-(\c*):)(.*)\((.*)\))))?)?)?"/>

		</xs:restriction>

</xs:simpleType> -->



</xs:schema>
--------------050309060904090200070409--