TEIC / TEI-Simple

Legacy Repository: TEI SimplePrint now merged into TEI Repository. Originally TEI Simple aimed to define a new highly-constrained and prescriptive subset of the Text Encoding Initiative (TEI) Guidelines suited to the representation of early modern and modern books, a formally-defined set of processing model rules that enable web applications to easily present and analyze the encoded texts, mapping to other ontologies, and processes to describe the encoding status and richness of a TEI digital text.
50 stars 12 forks source link

relaxng validation of testfiles with xmllint seems faulty #24

Open lb42 opened 8 years ago

lb42 commented 8 years ago

xmllint --valid teisimple.dtd tests/testsimple2.xml # works fine xmllint --valid --relaxng teisimple.rng tests/testsimple2.xml # sits there like a pudding jing teisimple.rng tests/testsimple2.xml # works fine rnv teisimple.rnc tests/testsimple2.xml # works fine

martindholmes commented 8 years ago

Confirmed. Nothing I try will make xmllint validate this. If we can figure out what's causing it, we can file a bug.

Things worth checking:

Cheers, Martin

On 15-10-06 03:05 AM, Lou wrote:

xmllint --valid teisimple.dtd tests/testsimple2.xml # works fine xmllint --valid --relaxng teisimple.rng tests/testsimple2.xml # sits there like a pudding jing teisimple.rng tests/testsimple2.xml # works fine rnv teisimple.rnc tests/testsimple2.xml # works fine

— Reply to this email directly or view it on GitHub https://github.com/TEIC/TEI-Simple/issues/24.

adunning commented 8 years ago

At the moment, I cannot get xmllint to validate any TEI-based Relax NG or Schematron schema (either this or EpiDoc). I imagine it's a bug in libxml2.

martindholmes commented 8 years ago

When I use xmllint to validate a file against a RelaxNG schema, I get lots of instances of the "RNG internal error trying to compile notAllowed" error the Syd reported over seven years ago:

http://comments.gmane.org/gmane.comp.gnome.lib.xml.general/14409

There don't seem to have been any responses to that. It doesn't seem that RNG is important to the libxml2 team, perhaps.

adunning commented 8 years ago

I was afraid of that; does that leave any method of validating against RNG or Schematron without Java? (I would like to be able to get validation working in a few editors other than Oxygen, but one can hardly ask developers to add such a heavy dependency just for this.)

lb42 commented 8 years ago

There's r n v ... It's in c

ghost commented 8 years ago

Strange thing: if you try to validate teisample2.xml against a different rng it will work:

This means there’s something in teisimple.rng that xmllint doesn’t like