[sword-devel] A call for Python programmers ...
Matěj Cepl
mcepl at cepl.eu
Wed Dec 31 12:00:08 MST 2014
On 2014-12-31, 12:00 GMT, Barry Drake wrote:
> I've been following the comments about usfm2osis.py. I agree
> that more information on errors would help a lot. The current
> error I'm getting is:
> Validating XML...
> XML Validation error: Element
> '{http://www.bibletechnologies.net/2003/OSIS/namespace}verse', attribute
> 'osisID': [facet 'pattern'] The value '1Kgs.3.36)' is not accepted by
> the pattern
Does this script parse XML with regexp? Are you aware of
http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454
?
BTW, concerning validating OSIS. This is from my Makefile with
which I generate CzeCSP module
(http://luther.ceplovi.cz/git/czekms-csp_bible.git/tree/Makefile):
test: bible.xml
xmllint --noout --schema podklady-OSIS/osisCore.2.1.1.xsd bible.xml
I believe xmllint runs on almost any reasonable platform and on
Windows as well :) (http://www.xmlsoft.org/downloads.html).
Best,
Matěj
More information about the sword-devel
mailing list