[sword-devel] XML Validation Used

luke luke at motimail.com
Thu Jun 21 17:53:09 MST 2012


Here is the answer to Peter's question,
I'm using xmllint with osisCore.2.1.1.xsd as my schema.  Also about the language I am creating for, it is not yet in the sword project, but I have a local locale here on my computer that I have created.  The below output is what comes out when I have left a footnote in only one of the section titles.  I noticed that our Bible has 6 section titles with footnotes and that only the 3 that were at the beginning of chapters were getting flagged as invalid.  I was able to fix two by moving the footnote to the same word used in the first verse of the chapter.  So far I don't have any great solutions for what to do with this footnote from Genesis 40.

As for the multiple verses combined into one, I have removed that from my usfm file and just skipped the verses that follow in the series, but it would be much better if they could be included in the sword module.

$ xmllint --noout --schema http://www.bibletechnologies.net/osisCore.2.1.1.xsd Kit at bS@m at .osis.xml
Kit at bS@m at .osis.xml:4125: element note: Schemas validity error : Element '{http://www.bibletechnologies.net/2003/OSIS/namespace}note', attribute 'osisID': [facet 'pattern'] The value '!footnote' is not accepted by the pattern '(((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?:)?((\p{L}|\p{N}|_|(\\[^\s]))+)((\.(\p{L}|\p{N}|_|(\\[^\s]))+)*)?(!((\p{L}|\p{N}|_|(\\[^\s]))+)((\.(\p{L}|\p{N}|_|(\\[^\s]))+)*)?)?'.
Kit at bS@m at .osis.xml:4125: element note: Schemas validity error : Element '{http://www.bibletechnologies.net/2003/OSIS/namespace}note', attribute 'osisID': '!footnote' is not a valid value of the atomic type '{http://www.bibletechnologies.net/2003/OSIS/namespace}osisIDRegex'.
KitabS at m@.osis.xml:4125: element note: Schemas validity error : Element '{http://www.bibletechnologies.net/2003/OSIS/namespace}note', attribute 'osisID': '!footnote' is not a valid value of the list type '{http://www.bibletechnologies.net/2003/OSIS/namespace}osisIDType'.
Kit at bS@m at .osis.xml fails to validate

@ used above in order to avoid Google.

Last of all, I am not able to use the perl file to fix titles.  This is the command I'm trying to use and the error that comes up:

perl title_cleanup.pl Kit at bS@m at .osis.xml
Can't locate XML/LibXML.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at title_cleanup.pl line 41.
BEGIN failed--compilation aborted at title_cleanup.pl line 41.

What package might I be missing?  I installed the perl library for working with xml data, but the error persists.

Thanks,
Luke



________________________________________
From: sword-devel-request at crosswire.org [sword-devel-request at crosswire.org]
Sent: Friday, June 22, 2012 3:00 AM
To: sword-devel at crosswire.org
Subject: sword-devel Digest, Vol 99, Issue 19

Send sword-devel mailing list submissions to
        sword-devel at crosswire.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.crosswire.org/mailman/listinfo/sword-devel
or, via email, send a message with subject or body 'help' to
        sword-devel-request at crosswire.org

You can reach the person managing the list at
        sword-devel-owner at crosswire.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sword-devel digest..."


Today's Topics:

   1. Re: Please advise, final steps towards our teams electronic
      publication (currently on OSIS validation) (luke)
   2. Question about verses combined in USFM and in OSIS (luke)
   3. Re: Question about verses combined in USFM and in OSIS
      (Peter von Kaehne)
   4. Re: Please advise, final steps towards our teams electronic
      publication (currently on OSIS validation) (Peter von Kaehne)


----------------------------------------------------------------------

Message: 1
Date: Wed, 20 Jun 2012 23:30:21 +0000
From: luke <luke at motimail.com>
To: "sword-devel at crosswire.org" <sword-devel at crosswire.org>
Subject: Re: [sword-devel] Please advise, final steps towards our
        teams electronic publication (currently on OSIS validation)
Message-ID:
        <C994D94BC1AC494FBC2E8901B4C77E90B82DDC2D at nathan.motimail.com>
Content-Type: text/plain; charset="us-ascii"

Thank you all for your input on my questions.  I'm currently on the step of fixing my USFM files so that I can create a valid OSIS file.
My osis was pretty close to valid, except for:
1) we had the wrong markers for our book introductions,
2) Bibledit did not put out a valid osis header,
3) footnotes in section titles. (I don't know how to fix this)

We have 3 section titles that have dialect specific words that are used and need to be explained.  The translators just put a footnote with the section title, but apparently OSIS doesn't like this.  Is there anything I can do to fix this so as to not remove the footnote from its location?

Thanks, Luke


------------------------------

Message: 2
Date: Wed, 20 Jun 2012 23:36:30 +0000
From: luke <luke at motimail.com>
To: "sword-devel at crosswire.org" <sword-devel at crosswire.org>
Subject: [sword-devel] Question about verses combined in USFM and in
        OSIS
Message-ID:
        <C994D94BC1AC494FBC2E8901B4C77E90B82E0C45 at nathan.motimail.com>
Content-Type: text/plain; charset="us-ascii"

I also want to ask again about multiple verses that have been combined into one verse i.e. Genesis 1:6-7.  Bibledit complains about the usfm formatting of \v 6-7.  However, in the USFM User Reference PDF disributed by paratext this is a common format for usfm encoding and is used multiple times in their examples.  Then when I look at the osis 2.1 user manual for March 2006, pg 15 it clearly represents a way to do this as well:

<verse sID="Esth.1.1-Esth.1.2" osisID="Esth.1.1 Esth.1.2" n="1-2"/>
King Xerxes of Persia lived in his capital city of Susa and ruled one
hundred twenty-seven provinces from India to Ethiopia.
<verse eID="Esth.1.1-Esth.1.2"/>

Sadly, the end result is that if I try to validate osis that includes this formatting, it is considered invalid.  The solution I have been using to make this work in GoBible and to avoid the error warnings in Bibledit is to create an empty verse 7 for GoBible file or in my sword project module to leave the text without a vs 7.  This allows me to validate, but it makes our published text and our electronic text different and could give the appearance to people using the electronic version that we have deleted parts of God's Word.  Any known solution that is better than this?

Thanks,
Luke



------------------------------

Message: 3
Date: Thu, 21 Jun 2012 06:59:08 +0100
From: Peter von Kaehne <refdoc at gmx.net>
To: SWORD Developers' Collaboration Forum <sword-devel at crosswire.org>
Subject: Re: [sword-devel] Question about verses combined in USFM and
        in OSIS
Message-ID: <1340258348.1925.1.camel at AOA110>
Content-Type: text/plain; charset="UTF-8"

On Wed, 2012-06-20 at 23:36 +0000, luke wrote:
> I also want to ask again about multiple verses that have been combined into one verse i.e. Genesis 1:6-7.

> Sadly, the end result is that if I try to validate osis that includes this formatting, it is considered invalid.

Then it is invalid for another reason. The construct you showed is
correct. What are you using to test for validity?

Peter




------------------------------

Message: 4
Date: Thu, 21 Jun 2012 07:01:36 +0100
From: Peter von Kaehne <refdoc at gmx.net>
To: SWORD Developers' Collaboration Forum <sword-devel at crosswire.org>
Subject: Re: [sword-devel] Please advise, final steps towards our
        teams electronic publication (currently on OSIS validation)
Message-ID: <1340258496.1925.3.camel at AOA110>
Content-Type: text/plain; charset="UTF-8"

On Wed, 2012-06-20 at 23:30 +0000, luke wrote:

> We have 3 section titles that have dialect specific words that are used and need to be explained.

notes can be in all text elements. So titles are not excluded. Again,
what are you using to test validity?




------------------------------

_______________________________________________
sword-devel mailing list
sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel


End of sword-devel Digest, Vol 99, Issue 19
*******************************************



More information about the sword-devel mailing list