I have a master TEI file, which is associated with an RNG schema, and has the full TEI header, text and body elements, and within body, my xincludes:
Code: Select all
<xi:include href="A.xml" xpointer="letter-A"/>
<xi:include href="B.xml" xpointer="letter-B/>
In the modules, which are all named A.xml, B.xml etc. I only have <divs> with corresponding xml:ids ("letter-A" and "letter-B"), and then the actual content.
The way I understand master files and modules, I don't need to have the full header or the association with a schema in the modules, because those should be picked up from the context of the module within the master file. That's the whole point of the modular architecture.
In reality, however, the above set-up doesn't work for me. If I try to validate individual modules, I get:
If I try to validate the master file, I'm told that my body is incomplete — as if it's not picking up the included elements.There is no schema or DTD associated with the document. You can create an association either with the Associate Schema action or configuring in the Options the Preferences/Document Type Association list, or by creating a Validation Scenario.
At the same time, looking at the resource hierarchy for the master file, I can see all the modules.
So, what am I missing here?
How can I xi:include segments into a master TEI file so that I can validate both the master file and the modules; while enjoying all those lovely autocomplete goodies from the modules themselves...
Many thanks in advance.