[sword-devel] Marking pre-verse titles?
dmsmith at crosswire.org
Thu Oct 20 11:43:01 MST 2011
On 10/20/2011 10:40 AM, David Haslam wrote:
> Evidently some folk could not read the original message, part of which read:
> Trouble is that in the example provided, one of the attributes does not
> validate against the OSIS 2.1.1 schema.
> The example given is
> <verse osisID="Ps.3.1" sID="Ps.3.1" n="1"/>
> <title canonical="true" subType="x-preverse" type="section">A Psalm
> of David, when he fled from Absalom his son.</title>
> <verse eID="Ps.3.1"/>
> Validating this within an otherwise valid OSIS XML file reports as follows:
> Value 'section' does not match any member types (of the union).
> This prompts the obvious question, should the attribute value be
> rather than
It could be x-section, but it'd be better to be absent or one of the
The title's type value is ignored by the SWORD engine. It is used by
osis2mod when the title is before the first verse in a chapter. Here are
those rules, taken from osis2mod:
// 2) Between the opening of a chapter and the first
verse, the material is split between the introduction of the chapter
// and the first verse of the chapter.
// A <div> with a type of section will be taken as
// A <title> of type other than main, chapter or
sub, will be taken as a title for the verse.
// Once one of these conditions is met, the division
between chapter introduction and pre-verse is set.
Everywhere else in osis2mod, it is ignored.
Currently, the SWORD engine uses subType="x-preverse" to know that the
verse number should follow the heading.
There is code in there that is supposed to recognize everything between
two markers as being pre-verse material, but it does not work. When that
works, the subType="x-preverse" should not be needed. (It shouldn't be
needed now as osis2mod knows when a title is pre-verse and can mark it
Hope this helps.
> View this message in context: http://sword-dev.350566.n4.nabble.com/Marking-pre-verse-titles-tp3921887p3922108.html
> Sent from the SWORD Dev mailing list archive at Nabble.com.
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel