[osis-core] OSISScripture_01094 with new regex.

Patrick Durusau osis-core@bibletechnologieswg.org
Tue, 16 Apr 2002 12:42:08 -0400


Todd,

Todd Tillinghast wrote:

>Following are valid:
>
><ref>Bible.KJV..Gen</ref>
><ref>Bible.KJV.A..Gen.a-a.1.1-1</ref>
><ref>Bible.B..Gen</ref>
><ref>Gen.20.17-18</ref>
><ref>Gen.20.17-18.Q-1</ref>
><rWork>Bible.TEV</rWork>
><rWork>Bible.XYZ</rWork>
><rWork>Bible.h</rWork>
><rWork>Bible.TEV.1998</rWork>
><rWork>Bible.1</rWork>
>
>Following are NOT valid:
>
><ref>Bible.KJV..</ref> (A side of me thinks this should be valid as a
>reference to the whole work.)
>
Shouldn't a refernce to the whole book be: Bible.KJV ? (Question, no 
real position on it)

Patrick

>
><ref>Bible.KJV.A..Gen.-a</ref>
><ref>Bible.TEV-1992..Gen</ref>
><ref>Gen.20.-18</ref>
><ref>Gen.20.17-18.-1</ref>
><ref>Gen.20.17-18-1</ref>
><ref>Gen 20:17</ref>
><rWork>Bible.TEV-1998</rWork>
><rWork>Bible.TEV 1998</rWork>
><rWork>Bible TEV</rWork>
><rWork>BIBLE.TEV</rWork>
>
>Todd
>
>
>------------------------------------------------------------------------
>
><?xml version="1.0" encoding="UTF-8"?>
><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified">
>	<xs:redefine schemaLocation="OSISCore_01094.xsd">
>		<xs:simpleType name="refWorkType">
>			<xs:restriction base="refWorkType">
>				<xs:pattern value="(Bible\.Prot|Bible\.Cath|Bible\.NIV|Bible\.KJV|Bible\.TEV|Bible\.NSAB|(Bible((\.[\w]+){1,})))"/>
>			</xs:restriction>
>		</xs:simpleType>
>		<xs:simpleType name="referenceType">
>			<xs:restriction base="referenceType">
>				<xs:pattern value="((Bible\.Prot|Bible\.Cath|Bible\.NIV|Bible\.KJV|Bible\.TEV|Bible\.NSAB|(Bible((\.[\w]+){1,})))\.\.((Gen|Exod|Lev|Num|Deut|Josh|Judg|Ruth|_1Sam|_2Sam|_1Kgs|_2Kgs|_1Chr|_2Chr|Ezra|Neh|Esth|Job|Ps|Prov|Eccl|Song|Isa|Jer|Lam|Ezek|Dan|Hos|Joel|Amos|Obad|Jonah|Mic|Nah|Hab|Zeph|Hag|Zech|Mal|Bar|PrAzar|Bel|Sus|_1Esd|_2Esd|AddEsth|EpJer|Jdt|_1Macc|_2Macc|_3Macc|_4Macc|PrMan|Ps151|Sir|Tob|Wis)|(Matt|Mark|Luke|John|Acts|Rom|_1Cor|_2Cor|Gal|Eph|Phil|Col|_1Thess|_2Thess|_1Tim|_2Tim|Titus|Phlm|Heb|Jas|_1Pet|_2Pet|_1John|_2John|_3John|Jude|Rev))((\.([\w]+(\-[\w]+)?)){0,})?)"/>
>				<xs:pattern value="((Gen|Exod|Lev|Num|Deut|Josh|Judg|Ruth|_1Sam|_2Sam|_1Kgs|_2Kgs|_1Chr|_2Chr|Ezra|Neh|Esth|Job|Ps|Prov|Eccl|Song|Isa|Jer|Lam|Ezek|Dan|Hos|Joel|Amos|Obad|Jonah|Mic|Nah|Hab|Zeph|Hag|Zech|Mal|Bar|PrAzar|Bel|Sus|_1Esd|_2Esd|AddEsth|EpJer|Jdt|_1Macc|_2Macc|_3Macc|_4Macc|PrMan|Ps151|Sir|Tob|Wis)|(Matt|Mark|Luke|John|Acts|Rom|_1Cor|_2Cor|Gal|Eph|Phil|Col|_1Thess|_2Thess|_1Tim|_2Tim|Titus|Phlm|Heb|Jas|_1Pet|_2Pet|_1John|_2John|_3John|Jude|Rev))((\.([\w]+(\-[\w]+)?)){0,})?"/>
>			</xs:restriction>
>		</xs:simpleType>
>		<xs:simpleType name="milestoneID">
>			<xs:restriction base="milestoneID">
>				<xs:pattern value="((Bible\.Prot|Bible\.Cath|Bible\.NIV|Bible\.KJV|Bible\.TEV|Bible\.NSAB|(Bible((\.[\w]+){1,})))\.\.((Gen|Exod|Lev|Num|Deut|Josh|Judg|Ruth|_1Sam|_2Sam|_1Kgs|_2Kgs|_1Chr|_2Chr|Ezra|Neh|Esth|Job|Ps|Prov|Eccl|Song|Isa|Jer|Lam|Ezek|Dan|Hos|Joel|Amos|Obad|Jonah|Mic|Nah|Hab|Zeph|Hag|Zech|Mal|Bar|PrAzar|Bel|Sus|_1Esd|_2Esd|AddEsth|EpJer|Jdt|_1Macc|_2Macc|_3Macc|_4Macc|PrMan|Ps151|Sir|Tob|Wis)|(Matt|Mark|Luke|John|Acts|Rom|_1Cor|_2Cor|Gal|Eph|Phil|Col|_1Thess|_2Thess|_1Tim|_2Tim|Titus|Phlm|Heb|Jas|_1Pet|_2Pet|_1John|_2John|_3John|Jude|Rev))((\.([\w]+(\-[\w]+)?)){0,})?)"/>
>				<xs:pattern value="((Gen|Exod|Lev|Num|Deut|Josh|Judg|Ruth|_1Sam|_2Sam|_1Kgs|_2Kgs|_1Chr|_2Chr|Ezra|Neh|Esth|Job|Ps|Prov|Eccl|Song|Isa|Jer|Lam|Ezek|Dan|Hos|Joel|Amos|Obad|Jonah|Mic|Nah|Hab|Zeph|Hag|Zech|Mal|Bar|PrAzar|Bel|Sus|_1Esd|_2Esd|AddEsth|EpJer|Jdt|_1Macc|_2Macc|_3Macc|_4Macc|PrMan|Ps151|Sir|Tob|Wis)|(Matt|Mark|Luke|John|Acts|Rom|_1Cor|_2Cor|Gal|Eph|Phil|Col|_1Thess|_2Thess|_1Tim|_2Tim|Titus|Phlm|Heb|Jas|_1Pet|_2Pet|_1John|_2John|_3John|Jude|Rev))((\.([\w]+(\-[\w]+)?)){0,})?"/>
>			</xs:restriction>
>		</xs:simpleType>
>		<xs:simpleType name="milestoneIDREF">
>			<xs:restriction base="milestoneIDREF">
>				<xs:pattern value="((Bible\.Prot|Bible\.Cath|Bible\.NIV|Bible\.KJV|Bible\.TEV|Bible\.NSAB|(Bible((\.[\w]+){1,})))\.\.((Gen|Exod|Lev|Num|Deut|Josh|Judg|Ruth|_1Sam|_2Sam|_1Kgs|_2Kgs|_1Chr|_2Chr|Ezra|Neh|Esth|Job|Ps|Prov|Eccl|Song|Isa|Jer|Lam|Ezek|Dan|Hos|Joel|Amos|Obad|Jonah|Mic|Nah|Hab|Zeph|Hag|Zech|Mal|Bar|PrAzar|Bel|Sus|_1Esd|_2Esd|AddEsth|EpJer|Jdt|_1Macc|_2Macc|_3Macc|_4Macc|PrMan|Ps151|Sir|Tob|Wis)|(Matt|Mark|Luke|John|Acts|Rom|_1Cor|_2Cor|Gal|Eph|Phil|Col|_1Thess|_2Thess|_1Tim|_2Tim|Titus|Phlm|Heb|Jas|_1Pet|_2Pet|_1John|_2John|_3John|Jude|Rev))((\.([\w]+(\-[\w]+)?)){0,})?)"/>
>				<xs:pattern value="((Gen|Exod|Lev|Num|Deut|Josh|Judg|Ruth|_1Sam|_2Sam|_1Kgs|_2Kgs|_1Chr|_2Chr|Ezra|Neh|Esth|Job|Ps|Prov|Eccl|Song|Isa|Jer|Lam|Ezek|Dan|Hos|Joel|Amos|Obad|Jonah|Mic|Nah|Hab|Zeph|Hag|Zech|Mal|Bar|PrAzar|Bel|Sus|_1Esd|_2Esd|AddEsth|EpJer|Jdt|_1Macc|_2Macc|_3Macc|_4Macc|PrMan|Ps151|Sir|Tob|Wis)|(Matt|Mark|Luke|John|Acts|Rom|_1Cor|_2Cor|Gal|Eph|Phil|Col|_1Thess|_2Thess|_1Tim|_2Tim|Titus|Phlm|Heb|Jas|_1Pet|_2Pet|_1John|_2John|_3John|Jude|Rev))((\.([\w]+(\-[\w]+)?)){0,})?"/>
>			</xs:restriction>
>		</xs:simpleType>
>	</xs:redefine>
></xs:schema
>

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