mvnForum Homepage Welcome Guest  | Guest Setting  |  Register  |   Login
  Search  
Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


»

No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
Post new Thread
Author
Previous Thread This topic has been viewed 1390 times and has 4 replies Next Thread
Male paalgg
Newbie



Norway
Joined: Sep 25, 2011
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Testament division

I am having problems dividing my first Bible prosject in OSIS format into new and old testament. I am reading about this division at this page in the wiki:
http://www.crosswire.org/wiki/OSIS_Tutorial#Text_Divisions

This is the output after the header and before the verses in Genesis 1 starts:
<div type="old-testament">
<div type="book" osisID="Gen">
<chapter osisID="Gen.1">


This is the ouput I get from NetBeans XML validating:
XML validation started.
Checking file:/X:/HTML/php/bibel_1921/bible1921.xml...
Referenced entity at "http://www.bibletechnologies.net/osisCore.2.1.1.xsd".
Referenced entity at "http://www.w3.org/2001/xml.xsd".
cvc-datatype-valid.1.2.3: 'old-testament' is not a valid value of union type 'divType'. [14]
cvc-attribute.3: The value 'old-testament' of attribute 'type' on element 'div' is not valid with respect to its type, 'divType'. [14]
cvc-datatype-valid.1.2.3: 'new-testament' is not a valid value of union type 'divType'. [26 532]
cvc-attribute.3: The value 'new-testament' of attribute 'type' on element 'div' is not valid with respect to its type, 'divType'. [26 532]
XML validation finished.

[Sep 25, 2011 1:46:24 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male paalgg
Newbie



Norway
Joined: Sep 25, 2011
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testament division

Please note that the error message is complaining about the "type" argument with value "old-testament" is not valid.

How can i divide my OSIS XML file into new and old testament? That is my question.
[Sep 26, 2011 1:29:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male paalgg
Newbie



Norway
Joined: Sep 25, 2011
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testament division

I have removed the testament divisions in the Bible I am trying to create a SWORD module for. The validation succeeds, but I am still wondering how it is done. Isn't it important?

Here is the start of my XML file for reference (note that the div for the old testament is removed, like shown in the first post above):

<?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"
xmlns:osis="http://www.bibletechnologies.net/2003/OSIS/namespace"
xsi:schemaLocation="http://www.bibletechnologies.net/2003/OSIS/namespace http://www.bibletechnologies.net/osisCore.2.1.1.xsd">
<osisText osisIDWork="thisWork" osisRefWork="bible" xml:lang="nno">
<header>
<work osisWork="thisWork">
<title>Test title</title>
<identifier type="OSIS">Test identifier</identifier>
<refSystem>Bible.German</refSystem>
</work>
<work osisWork="defaultReferenceScheme">
<refSystem>Bible.German</refSystem>
</work>
</header>

<div type="book" osisID="Gen">
<chapter osisID="Gen.1">
<verse osisID="Gen.1.1">I upphavet skapte Gud himmelen og jordi.</verse>
<verse osisID="Gen.1.2">Og jordi var aud og øydi, og myrker låg yver djupet; men Guds ande sveiv yver vatni.</verse>

[Sep 28, 2011 7:14:34 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male Mikey
Newbie



USA
Joined: Apr 25, 2009
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testament division

OSIS was concieved as a markup for more than e-reader programs. The testament ID is more important for other media types than for Bible study programs.

The Testament ID tag could be important if an OSIS document were to be the basis of a printed book. Say the author intended to put a preface or testament title page AFTER the end of the OLD testment, but prior the the start of the new testament, the division type testament is available to indicate to an inline processor clearly that the preface pages belong after the end of Mal. but prior to the beginning of Matt.

The Sword programs (as far as I know) would not display such a preface (which is probably best for bible study.) and as far as I know the module output (whether a book ends up in the old or new testament module file) is based entirely on the versification selected during the cammand line.

With or without the testament markers present, the parser still maps all of the bookID's properly into their relative testament modules based on the versification indicated when the parse is started. .

This is covered in the OSIS manual, but it isn't really that clear on the testament reference page.
[Sep 28, 2011 2:45:00 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    just_mike_y [Link] Report threatening or abusive post: please login first  Go to top 
Male paalgg
Newbie



Norway
Joined: Sep 25, 2011
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Re: Testament division

Thank you for your answer Mikey!

I wasn't aware of the OSIS Manual before you mentioned it.

So another question about testament: If I remove the testament division in the XML (OSIS) file, and run the
osis2mod pathtonewmodule mybible.xml -v German
command, there are only old testament files generated, the new testament files are empty. Any suggestions? What should be important about the document is already listed above (the start of my xml file).
[Sep 29, 2011 10:37:05 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread