[tei-council] TEI relaxng schemas, pattern names
Sebastian Rahtz
sebastian.rahtz at oucs.ox.ac.uk
Mon Oct 3 16:21:24 EDT 2005
Those of you who read our relaxng schemas for fun will know that
they are full of patterns like:
div = element div {div.content,div.attributes}
div.content = p+
Although the _element_ <div> is in a namespace, and protected
from conflict, the _pattern_ "div" is global. If you merge the TEI
with another language, and that too defines a pattern "div", it's
an error.
To get around this, I have done some experimental
work on the processing
and found that I can insert eg "_TEI_" in front of each
pattern, so that the above would be:
_TEI_div = element div {div.content,div.attributes}
div.content = _TEI_p+
Question: should I make this standard
for our output? It means the schemas are less legible,
but makes them more portable.
--
Sebastian Rahtz
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
OSS Watch: JISC Open Source Advisory Service
http://www.oss-watch.ac.uk
More information about the tei-council
mailing list