[sword-devel] Osis validation problems on header

johnduffy at cgcf.net johnduffy at cgcf.net
Mon Nov 2 07:08:12 MST 2009


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




More information about the sword-devel mailing list