[sword-devel] Module validation error on xmllint - what now?

DM Smith dmsmith555 at yahoo.com
Sat Jan 10 18:00:00 MST 2009


On Jan 10, 2009, at 6:39 PM, Peter von Kaehne wrote:

> I am working on a new whole Bible module (Dari). I produced it from  
> USFM
> source which was clean enough from USFM point of view - the only  
> things
> I needed to do was removing some backup info and exchanging a  
> deprecated
> usfm marker \ph with \li.
>
> So far so good.
>
> usfm2osis.pl and then osis2mod produce a module which seems to work  
> just
> fine.
>
> But validation with xmllint fails. See message attached below.
>
> I can not nail the error down
>
> Can anyone give me a hint?
>
> Thanks
>
> Peter
>
> ------------------
>
> laptop:/tmp/Dari$ xmllint --noout --schema
> http://www.bibletechnologies.net/osisCore.2.1.1.xsd Dari.osis.xml
>
> Dari.osis.xml:65535: element div: Schemas validity error : Element
> '{http://www.bibletechnologies.net/2003/OSIS/namespace}div': This
> element is not expected. Expected is one of (
> {http://www.bibletechnologies.net/2003/OSIS/namespace}a,
> {http://www.bibletechnologies.net/2003/OSIS/namespace}abbr,
> {http://www.bibletechnologies.net/2003/OSIS/namespace}catchWord,
> {http://www.bibletechnologies.net/2003/OSIS/namespace}chapter,
> {http://www.bibletechnologies.net/2003/OSIS/namespace}closer,
> {http://www.bibletechnologies.net/2003/OSIS/namespace}date,
> {http://www.bibletechnologies.net/2003/OSIS/namespace}divineName,
> {http://www.bibletechnologies.net/2003/OSIS/namespace}figure,
> {http://www.bibletechnologies.net/2003/OSIS/namespace}foreign,
> {http://www.bibletechnologies.net/2003/OSIS/namespace}hi ).
> Dari.osis.xml fails to validate

The complaint is that the parent of the <div> in question does not  
allow a <div> as a child. For the most part, in OSIS, a <div> can only  
be in a <div>.

In His Service,
	DM






More information about the sword-devel mailing list