[sword-devel] Osis validation problems on header

Peter von Kaehne refdoc at gmx.net
Mon Nov 2 07:56:07 MST 2009


I can not answer your question (nor have I tried it myself right now (with being at work), but as I think that our osis2mod procedure will "kill" all of the header stuff anyway, it is probably not necessary to add anything beyond what is given by usfm2osis.pl

Peter


-------- Original-Nachricht --------
> Datum: Mon, 2 Nov 2009 14:08:12 -0000
> Von: johnduffy at cgcf.net
> An: sword-devel at crosswire.org
> Betreff: [sword-devel] Osis validation problems on header

> 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

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser



More information about the sword-devel mailing list