[sword-devel] How to deal with invalid markup?

Michael Johnson Michael at eBible.org
Wed Jul 17 17:51:08 MST 2019


Mea culpa. Sorry about that. The engNET2016eb module has been updated to get rid of some residual XHTML notes at ends of chapters that were missed in the first filtering process. Oddly enough, the result was actually valid XML syntax, but its semantics were wrong.

On 7/16/19 9:36 PM, David Haslam wrote:
> Hi Tobias,
>
>
> OSIS Modules submitted for release by CrossWire should always be validated prior to submission. They would be rejected if the XML cannot be validated to one of the OSIS schemas that SWORD supports. All the more so if the input file fails to pass an XML syntax check. 
>
> CrossWire has no control over the preparation of modules for the associated repositories such as eBible.org
>
> Such errors should be reported to the repository owner, in this case Kahunapule Michael Paul Johnson. 
> He is a member of this mailing list. 
>
> Best regards,
>
> David
>
> Sent from ProtonMail Mobile
>
>
> On Wed, Jul 17, 2019 at 07:13, Tobias Klein <contact at tklein.info <mailto:contact at tklein.info>> wrote:
>>
>> Hi everyone,
>>
>> Is there a recommended way on how to deal with invalid markup (in a frontend) when using the text from a Sword module?
>>
>> To me invalid markup is basically invalid XML.
>> You find an example below (Exodus 3:22 / engNET2016eb).
>>
>> Are Sword modules validated with standard XML validation tools before being published?
>>
>> Best regards,
>> Tobias
>>
>> Module: engNET2016eb
>>
>> Mark-up text of Exodus 3:22 (module->getRawEntry()):
>>
>> <w lemma="strong:H802">Every</w> <w lemma="strong:H802">woman</w> <w lemma="strong:H7592">will ask</w> <w lemma="strong:H7934">her neighbor</w> <w lemma="strong:H1481">and the one who happens to be  staying</w> <w lemma="strong:H1004">in her house</w> <w lemma="strong:H3627">for items</w> <w lemma="strong:H3701">of silver</w> <w lemma="strong:H2091">and gold</w> <w lemma="strong:H8071">and for clothing</w>. <w lemma="strong:H7760">You will put</w> <w lemma="strong:H3627">these articles</w> <w
>> lemma="strong:H5921">on</w> <w lemma="strong:H1121">your sons</w> <w lemma="strong:H1323">and daughters</w> <w lemma="strong:H5337">– thus you</w>
>>
>> INVALID section starts here:
>>
>> <w lemma="strong:H4713">will plunder Egypt</w>*!” ‘*span class=”footnote” id=”footnote-65”*’‘*span class=”key”’65‘
>> <w lemma="strong:H7760">a</w>**href=”#note-65” class=”backref”’*3:19‘/a’‘*span class=”text”’ <hi type="italic">tn</hi>: <hi type="italic">Heb</hi> “
>>
>> <w lemma="strong:H1121">and</w> <w lemma="strong:H1121">not</w> <w lemma="strong:H1004">with</w> <w lemma="strong:H7760">a</w> mighty hand.”
>> ...
>>
>
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page


-- 
signature

Aloha,
*/Michael Johnson/**
PO BOX 881143 • PUKALANI HI 96788-1143*• USA
mljohnson.org <http://mljohnson.org> • Phone: +1 808-333-6921 • Skype: kahunapule





More information about the sword-devel mailing list