XInlcude, Xpointer and master files in oXygen
Posted: Sat Jun 25, 2016 1:34 pm
Hi. I'm having trouble understanding how to use Master files with XInclude and Xpointer in Oxygen.
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:
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:
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.
Tench
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
<text>
<body>
<xi:include href="A.xml" xpointer="letter-A"/>
<xi:include href="B.xml" xpointer="letter-B/>
<!-- etc.-->
</body>
</text>
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.
Tench