[osis-core] rich example

Patrick Durusau osis-core@bibletechnologieswg.org
Thu, 04 Apr 2002 16:27:46 -0500


Troy,



Troy A. Griffitts wrote:

>OK, so from the help I've gotten so far, the simple 1 verse example now
>looks like this (please keep your input rolling in):
>
>
>TR: en arXA An ho logos kai ho logos An pros ton Qeon kai Qeos An ho
>logos
>KJV: In the beginning was the Word, and the Word was with God, and the
>Word was God.
>
>becomes:
>
>
>TR: 
>
><verseStart reference="John.1.1" />
>
Hmmm, may have confusing attributes. VerseStart is the attribute that I 
would use to indicate the beginning of a verse by milestone, not 
reference. When we were discussing reference, I was thinking (probably 
did not say or at least say it clearly) that use of reference was to me 
like a pointer, for example, note uses reference to point to where it 
applies in the text, not the "whoami" sort of purpose.

Hesitate to take reference off of verse because I can easily imagine 
cases where one would want to point from a verse to another place in the 
text, but perhaps need a better documented solution to that usage? That 
is why referenceEnd occurs, so you can link the verse to a starting and 
ending point of some other material, either in the Bible proper or in 
another source. Pointing to a particular Bible commentary for example 
from the text itself.

><w lemma="x-Strong:1722"
>morphology="x-Robinson:PREP" gloss="x-en:In"
>transliteration="x-Latin:en" ID="67521">en</w> 
>
OK, but the ID should not validate (violates XML Name constraints)

From: http://www.w3.org/TR/2000/REC-xml-20001006


*Validity constraint: ID*

Values of type *ID* must match the Name 
<http://www.w3.org/TR/2000/REC-xml-20001006#NT-Name> production. A name 
must not appear more than once in an XML document as a value of this 
type; i.e., ID values must uniquely identify the elements which bear them.

Name production (same source)

[5]    |Name|    ::=    |( Letter 
<http://www.w3.org/TR/2000/REC-xml-20001006#NT-Letter> | '_' | ':') ( 
NameChar <http://www.w3.org/TR/2000/REC-xml-20001006#NT-NameChar> )*|


Note that while permissible, the ":' is reserved for use with namespaces.

Interesting question (I will pose to the xml-dev list), can we have more 
than one attribute that has the ID constraint? In other words, <word> 
has ID with usual ID constraint but also verseStart, also with ID 
constraint.

XML Standard says:

*Validity constraint: One ID per Element Type*

No element type may have more than one ID attribute specified.

Note that this validates with both the IBM Schema validator and with 
XMLSpy, but that is not an absolute guarantee.

Futher question:

Do you intend for both of these to be in a single document instance?

The reason I ask is that assuming that we resolve the question of what 
should function as the ID and the ID validity question, you would then 
have two elements that have the same ID in the same document instance 
(violation of the unique ID requirement).

Sorry for the slow responses over the last couple of days. Have not been 
feeling well. Much better today and looking forward to a real stretch of 
productivity until we get this release to bed!

Thanks!

(I copied the usual suspects as I did not know if you already subscribed 
them to the osis-core list.)

Patrick


><w lemma="x-Strong:746"
>morphology="x-Robinson:N-DSF" gloss="x-en:the beginning"
>transliteration="x-Latin:archei" ID="67522">arXa</w> <w
>lemma="x-Strong:2258" morphology="x-Robinson:V-IXI-3S" gloss="x-en:was"
>transliteration="x-Latin:ein" ID="67523">An</w> <w lemma="x-Strong:3056"
>morphology="x-Robinson:N-NSM" gloss="x-en:the Word"
>transliteration="x-Latin:ho logos" ID="67524">ho logos</w>, <w
>lemma="x-Strong:2532" morphology="x-Robinson:CONJ" gloss="x-en:and"
>transliteration="x-Latin:kai" ID="67525">kai</w> <w
>lemma="x-Strong:3056" morphology="x-Robinson:N-NSM" gloss="x-en:the
>Word" transliteration="x-Latin:ho logos" ID="67526">ho logos</w> <w
>lemma="x-Strong:2258" morphology="x-Robinson:V-IXI-3S" gloss="x-en:was"
>transliteration="x-Latin:ein" ID="67527">An</w> <w lemma="x-Strong:4314"
>morphology="x-Robinson:PREP" gloss="x-en:with"
>transliteration="x-Latin:pros" ID="67528">pros</w> <w
>lemma="x-Strong:2316" morphology="x-Robinson:N-ASM" gloss="x-en:God"
>tranliteration="ton theon" ID="67529">ton Qeon</w>, <w
>lemma="x-Strong:2532" morphology="x-Robinson:CONJ" gloss="x-en:and"
>transliteration="x-Latin:kai" ID="67530">kai</w> <w
>lemma="x-Strong:2316" morphology="x-Robinson:N-NSM gloss="x-en:God"
>transliteration="x-Latin:theos" ID="67531">Qeos</w> <w
>lemma="x-Strong:2258" morphology="x-Robinson:V-IXI-3S" gloss="x-en:was"
>transliteration="x-Latin:ein" ID="67532">An</w> <w lemma="x-Strong:3056"
>morphology="x-Robinson:N-NSM" gloss="x-en:the Word"
>transliteration="x-Latin:ho logos" ID="67533">ho logos</w><verseEnd
>reference="John.1.1" />
>
>KJV:
>
><verseStart reference="John.1.1" /><w lemma="x-Strong:1722"
>morphology="x-Robinson:PREP" reference="TR.John.1.1.67521">In</w> <w
>lemma="x-Strong:746" morphology="x-Robinson:N-DSF"
>reference="TR.John.1.1.67522">the beginning</w> <w lemma="x-Strong:2258"
>morphology="x-Robinson:V-IXI-3S" reference="TR.John.1.1.67523">was</w>
><w lemma="x-Strong:3056" morphology="x-Robinson:N-NSM"
>reference="TR.John.1.1.67524">the Word</w>, <w lemma="x-Strong:2532"
>morphology="x-Robinson:CONJ" reference="TR.John.1.1.67525">and</w> <w
>lemma="x-Strong:3056" morphology="x-Robinson:N-NSM"
>reference="TR.John.1.1.67526">the Word</w> <w lemma="x-Strong:2258"
>morphology="x-Robinson:V-IXI-3S" reference="TR.John.1.1.67527">was</w>
><w lemma="x-Strong:4314" morphology="x-Robinson:PREP"
>reference="TR.John.1.1.67528">with</w> <w lemma="x-Strong:2316"
>morphology="x-Robinson:N-ASM" reference="TR.John.1.1.67529">God</w>, <w
>lemma="x-Strong:2532" morphology="x-Robinson:CONJ"
>reference="TR.John.1.1.67530">and</w> <w lemma="x-Strong:3056"
>morphology="x-Robinson:N-NSM reference="TR.John.1.1.67533">the Word</w>
><w lemma="x-Strong:2258" morphology="x-Robinson:V-IXI-3S"
>reference="TR.John.1.1.67532">was</w> <w lemma="x-Strong:2316"
>morphology="x-Robinson:N-NSM
>reference="TR.John.1.1.67531">God</w>.<verseEnd reference="John.1.1" />
>

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