dreaded conflicting ID types
The odd4odds RELAX NG schema (soon to be tei_customization.rng in Exemplars/ unless someone comes up with a better name) is itself invalid when ID/IDREF checking is on (in oXygen), or the '-i' switch is not present (using `jing`). This, of course, would break the build process unless we special-case it. And, as you can see in the documentation for the schema, this has been a well-known situation for this schema for a long time. The current version is not readily available, as I am working on it. The version of the schema[1] and the documentation[2] that I showed in Prague are still easily available. Here are the error messages I'm getting from `jing` (w/o '-i') from that version of the schema, re-written a bit for readability: | 877:16: error: conflicting ID-types for "@xml:id" of tei:sequence | 1057:14: error: conflicting ID-types for "@defaultPhase" of sch:schema | 1037:14: error: conflicting ID-types for "@defaultPhase" of sch:schema | 1085:14: error: conflicting ID-types for "@defaultPhase" of sch:schema | 1016:14 error: conflicting ID-types for "@defaultPhase" of sch:schema Of course, if we fix the latter 4 messages by making @defaultPhase NCName instead of IDREF, something else crops up instead (@id of sch:rule), as the errors are not from the Schematron declarations, really, but rather from our definitions of "anyElement-xenoData", "anyElement-egXML", "anyElement-content", and "anyElement-datatype". (The first error is from the definition of "sch_foreign-element".) Excluding elements from the Schematron and TEI namespaces form all of these macros fixes this problem. But of course, that's not OK. You might very well want TEI elements inside your Schematron assertions, and you might very well want to give example code of Schematron in your <egXML>. Besides, it would require altering the Schematron schema, which rubs me the wrong way. Before I go special-casing this particular schema in the build process (so it is validated w/ '-i', as all should be in my opinion) I wanted to know if there are any other solutions I'm missing. Notes ----- [1] http://www.wwp.neu.edu/outreach/seminars/_current/handouts/ODD_exercise_supp... [2] http://www.wwp.neu.edu/outreach/seminars/_current/handouts/ODD_exercise_supp...
participants (1)
-
Syd Bauman