[sword-devel] Poetry Encoding

Chris Little chrislit at crosswire.org
Thu Mar 26 17:30:18 MST 2009

DM Smith wrote:
> David (Mailing List Addy) wrote:
>> So now that we've had a discussion about how to indent poetry, is 
>> there a reliable way to pragmatically detect poetry? In the ESV 
>> instead of wrapping the lines in <l></l> tags it's in an <l /> tag. Is 
>> this the standard way of encoding them?
> David,
> Using <l/> is simply sloppy and bad OSIS. It works, it validates, but is 
> wrong. (I did the conversion, so I am slamming myself:)
> According to the OSIS spec (from memory):
> <lg>
> <l>xxx</l>
> <l level="2">yyy</level>
> <l>aaa</l>
> ...
> </lg>

According to the OSIS schema, level is defined as:
<xs:attribute name="level" type="xs:positiveInteger" use="optional"/>

I had thought level had a default value of "1", but apparently not. (I 
feel like that's a bug, but I suppose it's debatable.) In lieu of a 
value, I don't know what value could be assumed other than "1". But for 
explicitness, whenever I encode different level values, I specify 
level="1" rather than omitting it.

I believe <l> can also be used for orthographic lines in mss/tablets (if 
I ever convert the EnumaElish module to OSIS, I'll use <l> there). So in 
that case (i.e. non-poetic lines) level would be unnecessary & have no 


More information about the sword-devel mailing list