Master file support for TEI documents
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 87
- Joined: Fri Dec 19, 2003 6:02 pm
Master file support for TEI documents
I'm trying to apply oXygen's master file support to TEI documents, but that doesn't seem to work. I've noticed one old question in the forum topic13310.html?hilit=tei%20master but the instructions provided there still don't seem to help.
I have a project in which the master file support is enabled. Then I have a file called master.xml which is recognized by oXygen as a master. Inside the body element it includes an external segment:
The file entry.xml looks like this:
When I try to validate the master file, oXygen will tell me:
even though the element entry is of course allowed right there. I already have one entry element in the master file — to show that it should work. Similarly, if I try to validate entry.xml, it will give me the same error.
My external module has the TEI namespace so that shouldn't be a problem.
What am I doing wrong?
I am attaching a link to a folder which contains the above set up for testing purposes.
https://www.dropbox.com/s/aey3ldjk1lz68 ... i.zip?dl=0
Any tips would be greatly appreciated.
I have a project in which the master file support is enabled. Then I have a file called master.xml which is recognized by oXygen as a master. Inside the body element it includes an external segment:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml"
schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
<sourceDesc>
<p>Information about the source</p>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<body>
<entry>
<form>
<orth>entry-in-master-file</orth>
</form>
</entry>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="entry.xml"></xi:include>
</body>
</text>
</TEI>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:tei="http://www.tei-c.org/ns/1.0">
<form>
<orth>entry-in-module</orth>
</form>
</entry>
Code: Select all
element "entry" not allowed here; expected the element end-tag or element "ab", "addSpan", "alt", "altGrp", "anchor", "annotationBlock", "app", "argument", "bibl", "biblFull", "biblStruct", "byline", "camera", "caption", "castList", "cb", "certainty", "cit", "classSpec", "closer", "constraintSpec", "damageSpan", "dataSpec", "dateline", "delSpan", "desc", "div", "div1", "docAuthor", "docDate", "eTree", "eg", "elementSpec", "entry", "entryFree" ...
My external module has the TEI namespace so that shouldn't be a problem.
What am I doing wrong?
I am attaching a link to a folder which contains the above set up for testing purposes.
https://www.dropbox.com/s/aey3ldjk1lz68 ... i.zip?dl=0
Any tips would be greatly appreciated.
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Master file support for TEI documents
Hi,
If you open the entry.xml please change in it the:
to:
It took me about 10-15 minutes to realize this was the mistake 
Regards,
Radu
If you open the entry.xml please change in it the:
Code: Select all
xmlns:tei="http://www.tei-c.org/ns/1.0"
Code: Select all
xmlns="http://www.tei-c.org/ns/1.0"

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 87
- Joined: Fri Dec 19, 2003 6:02 pm
Re: Master file support for TEI documents
Dear Radu,
I have a follow-up question here. I've discovered that the validation of xi:included modules doesn't work in oXygen if the module has non-ascii (for instance Cyrillic) letters in the file name.
Please see attached. The master file includes two files, one called entry.xml and the other called одредница.xml. The master file validates with both included files, but of the two module files only entry.xml validates. одредница.xml gives an error about how the file is missing TEI or teiCorpus elements, which means that oXygen is not properly recognizing that module file as being included in the master.
https://www.dropbox.com/s/aey3ldjk1lz68 ... i.zip?dl=0
Could you please take a look and let me know what's going on here. Is this a bug?
All best,
Toma
I have a follow-up question here. I've discovered that the validation of xi:included modules doesn't work in oXygen if the module has non-ascii (for instance Cyrillic) letters in the file name.
Please see attached. The master file includes two files, one called entry.xml and the other called одредница.xml. The master file validates with both included files, but of the two module files only entry.xml validates. одредница.xml gives an error about how the file is missing TEI or teiCorpus elements, which means that oXygen is not properly recognizing that module file as being included in the master.
https://www.dropbox.com/s/aey3ldjk1lz68 ... i.zip?dl=0
Could you please take a look and let me know what's going on here. Is this a bug?
All best,
Toma
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Master file support for TEI documents
Hi Toma,
From what it seems somehow Oxygen expects all xi:include references to be encoded as ASCII strings, for example if you replace:
with:
Oxygen will start to "see" the relationship between the opened module and its master file.
What Oxygen does right now is not necessarily correct, I'll add an internal issue to look into this.
Regards,
Radu
From what it seems somehow Oxygen expects all xi:include references to be encoded as ASCII strings, for example if you replace:
Code: Select all
<xi:include href="одредница.xml"></xi:include>
Code: Select all
<xi:include href="%D0%BE%D0%B4%D1%80%D0%B5%D0%B4%D0%BD%D0%B8%D1%86%D0%B0.xml"></xi:include>
What Oxygen does right now is not necessarily correct, I'll add an internal issue to look into this.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 87
- Joined: Fri Dec 19, 2003 6:02 pm
Re: Master file support for TEI documents
Тhanks, Radu.
I'd be most grateful if you could look into fixing this. Urlencoding filenames is really not a practical solution — because they are not human legible, and they would ruin the workflow I'm trying to set up now for our dictionary encoders. We need filenames to correspond to entry headwords and that means we need to be able utf8 strings in filenames.
Many thanks in advance.
All best,
Toma
I'd be most grateful if you could look into fixing this. Urlencoding filenames is really not a practical solution — because they are not human legible, and they would ruin the workflow I'm trying to set up now for our dictionary encoders. We need filenames to correspond to entry headwords and that means we need to be able utf8 strings in filenames.
Many thanks in advance.
All best,
Toma
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Master file support for TEI documents
Hi Toma,
I understand, we'll try to have a fix for this in Oxygen 21 (around February 2019).
In the meantime you can define a validation scenario which validates the master file and associate it to the entire folder containing modules.
Regards,
Radu
I understand, we'll try to have a fix for this in Oxygen 21 (around February 2019).
In the meantime you can define a validation scenario which validates the master file and associate it to the entire folder containing modules.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 419
- Joined: Mon May 09, 2016 9:37 am
Re: Master file support for TEI documents
Post by sorin_carbunaru »
Hello,
oXygen 21 was released on Friday and it contains a fix for the issue filed by Radu.
Best wishes from the oXygen team!
Sorin Carbunaru
oXygen XML
oXygen 21 was released on Friday and it contains a fix for the issue filed by Radu.
Best wishes from the oXygen team!
Sorin Carbunaru
oXygen XML
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