Karl Eichwalder wrote:
>
> How can add xmlns:xi as an attribute to the P5 DTD?
>
It's a good question. My short answer is that I wouldn't do it.
If you want to live a world of mixed namespaces, why not
switch to a schema language which understands namespaces?
Then we can just add the <include> element (in the right ns)
to the global class. You could either rewrite the XInclude
syntax direct in ODD, or include the xinclude schema.
But of course this is only the start. You have to
adjust the schema or DTD to relax the content
model in places where you want to have <include> instead.
So
<TEI
<xi:include href="header.xml"/>
<text>
...
<text>
</TEI>
is invalid, because <teiHeader> is mandatory. You
can't just use <include> in place of entities,
because entities are expanded by the XML
parser _before_ validation, whereas <include>
comes after.
Of course, you could run an XInclude
expander before a proper parse, and then you don't need
to worry about the DTD or schema. But then you cant
use a validating editor.
--
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
|