which namespaces shall be magic? #2454
Labels
atop
another TEI ODD processor
CouncilResponsibility
Status: Needs Discussion
TEI: Guidelines & Documentation
TEI: Schema
TEI: Schematron
Milestone
For the foreseeable future, Schematron uses a different mechanism of binding a namespace prefix to a namespace URI than does XML. So a Schematron schema that processes a TEI ODD file is likely to need to have something like
in it.
The question is, which namespaces, if any, should the processor insert for the user, and which namespaces should the user be forced to explicitly declare?. Which is the same as asking which namespace prefixes should “work” by magic, and which ones should cause an error until the poor user figures out how to declare them?
I believe that at the moment the TEI Stylesheets only insert a declaration for one namespace automagically (the "tei:" prefix). Furthermore, the TEI Guidelines explicitly declare the "tei:", "xs:", "rng:", "sch:", and "s:" prefixes (that last one is for old Schematron). Thus any user using ODD for customizing (or writing) TEI P5 does not need to declare those. (Note: I added one more in a branch just recently, but I forget which branch. Sigh.)
I think there are three possible avenues, with some variation:
Remeber that this will mostly impact people like the TEI Council and those who write languages like MEI. They will need to express
<sch:ns>
elements in their<constraintDecl>
element (see #2330). Users who are customizing a language like TEI or MEI would only need to declare prefixes that are not declared in the main languages’<constraintDecl>
.I was wobbly on this issue in the past, but now that I have spent time thinking about it while writing it down here, I am pretty strongly in favor of (1).
The text was updated successfully, but these errors were encountered: