[sword-devel] OSIS markup

Chris Little chrislit at crosswire.org
Mon Apr 30 13:52:24 MST 2007

DM Smith wrote:
>>> 4) Use milestoned version of the <q> element and close the element by
>>> changing the publisher's material, adding an ellipsis.
>>> 	Lit <hi type="italic">saying, <q marker="“" level="1" sID="xxx"/
>>>> The ...<q marker="" level="1" eID="xxx"/></hi>
>> The added ellipsis would be bad, but if marker="" is not equivalent to
>> no marker attribute, then that would be a good solution. I'm just not
>> sure about how XML defines empty attribute values.
> I agree that this is bad.
> In XML any attribute can have an empty value (btw, there is a unicode  
> close quote above) and Sword/JSword handle it properly.

(Hmm... I can't see the close quote.)

I know XML allows for empty attribute values, but I'm not sure whether 
they are formally equivalent to no attribute at all.

For example <p></p> is formally equivalent to <p/> and vice versa. If an 
empty attribute is formally equivalent to no attribute at all, then the 
correct behavior for a stylesheet would most likely be to generate a 
close quotation mark in the event of finding marker="".


More information about the sword-devel mailing list