XInlcude, Xpointer and master files in oXygen
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 8
- Joined: Mon Jun 02, 2008 5:50 pm
XInlcude, Xpointer and master files in oXygen
Post by psychomachine »
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
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: XInlcude, Xpointer and master files in oXygen
Post by radu_pisoi »
Two possible problems:
1. Your modules don't declare the namespace for TEI documents
2. The Master Files support is disable or your TEI master document is not marked as a master file.
To enable the Master Files support please use the Enable Master Files support action from the Project application menu. After you have enabled it, please add your TEI document to the master files by using the Add to Master Files action from the contextual menu of the Project view.
Does this help you to configure the Master Files support for TEI documents?
1. Your modules don't declare the namespace for TEI documents
Code: Select all
xmlns="http://www.tei-c.org/ns/1.0"
To enable the Master Files support please use the Enable Master Files support action from the Project application menu. After you have enabled it, please add your TEI document to the master files by using the Add to Master Files action from the contextual menu of the Project view.
Does this help you to configure the Master Files support for TEI documents?
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service