[sword-devel] Osis validation problems on header
DM Smith
dmsmith at crosswire.org
Mon Nov 2 08:51:03 MST 2009
John,
<header> allows <teiHeader> as a child and this element can contain any
content. My guess is that it was provided as a way to maintain the
Dublin Core header elements from a TEI document. Perhaps Chris can comment.
In Him,
DM
On 11/02/2009 09:08 AM, johnduffy at cgcf.net wrote:
> Hi,
>
> I've got the whole of the Bible to validate, but have problems with the
> header.
>
> The basic header which is output from usfm2osis.pl allows the whole Bible to
> validate (using Notepad++ and a copy of the Osis schema saved as a local
> file).
>
> <?xml version="1.0" encoding="UTF-8"?>
> <osis xmlns="http://www.bibletechnologies.net/2003/OSIS/namespace"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.bibletechnologies.net/2003/OSIS/namespace
> http://www.bibletechnologies.net/osisCore.2.1.1.xsd">
> <osisText osisRefWork="Bible" xml:lang="en" osisIDWork="GEN">
> <header>
> <work osisWork="GEN"/>
> </header>
>
> However, when I add the Dublin core info, it doesn't validate. I've tried
> to isolate the problem, but have been unsuccessful, as even single line
> additions to the basic header above cause problems. It generally comes up
> with "xml parsing error at line xx; Extra content at the end of the
> document"
>
> Can anyone comment on why the error arises? Also, whether the info looks
> correct below, as there are different options depending on what I read?
> Thanks
>
> <?xml version="1.0" encoding="UTF-8"?>
> <osis xmlns="http://www.bibletechnologies.net/2003/OSIS/namespace"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.bibletechnologies.net/2003/OSIS/namespace
> http://www.bibletechnologies.net/osisCore.2.1.1.xsd">
> <osisText osisRefWork="Bible" xml:lang="en" osisIDWork="ABN">
> <header>
> <revisionDesc resp=”JGD”><date>2009.11.02</date><p>JGD: First osis
> revision</p></revisionDesc>
> <work osisWork="ABN">
> <title>An Bíobla Naofa</title>
> <creator role="edt">Pádraig Ó Fiannachta</creator>
> <contributor role="trl">Various</contributor>
> <identifier type="OSIS">ABN</identifier>
> <identifier type="ISBN">1870684907</identifier>
> <date event="original" type="gregorian">1981</date>
> <date event="eversion" type="gregorian">2009</date>
> <language type="ISO-639-2">GLA</language>
> <rights type="x-copyright">Copyright 1981 An Sagart</rights>
> <publisher>An Sagart</publisher>
> <description>Bible text of the Bible in Irish "An Bíobla
> Naofa"</description>
> <coverage>Irish</coverage>
> <relation type="x-relatedresource">None</relation>
> <format type="x-MIME">text/xml</format>
> <source>Electronic text (OCR of original 1981 print edition)
> of "An Bíobla Naofa" on CD-ROM (1998) by Chora Dhuibhne T/as Fios Feasa.
> Used by permission from Pádraig Ó Fiannachta</source>
> <subject type="DDC">220.5</subject>
> <subject="OSIS">Bible</subject>
> <type type="OSIS">Bible</type>
> <refSystem>Bible.KJVA</refSystem>
> <scope>GEN-REV</scope>
> </work>
> <work osisWork="Bible">
> <refSystem>Bible.KJVA</refSystem>
> </work>
> </header>
>
>
> John Duffy
>
>
> _______________________________________________
> 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
>
More information about the sword-devel
mailing list