Page 1 of 1
Validation of TEI files
Posted: Tue Jun 26, 2012 1:16 am
by martindholmes
When editing a TEI file which is not explicitly linked to a schema, Oxygen uses something from the TEI framework to do the validation. Can you tell me exactly what it uses? I was under the impression that it was the tei_all customization, but based on recent experiences that doesn't seem to be the case; I was working on an ODD file today and the validator in Oxygen complained that <editionStmt> was not allowed where it should be allowed.
Re: Validation of TEI files
Posted: Tue Jun 26, 2012 9:05 am
by Radu
Hello Martin,
Oxygen has a view called Properties which can be opened from the menu Window->Show View.
This view shows a lot of interesting details about the current document like the used document type and the used schema so it's good for debugging such situations.
When a TEI document does not explicitly reference a schema, a default schema is used.
If you open the Oxygen Preferences->Document Type Association page it contains a list of document types among which TEI P4 and TEI P5 and TEI ODD.
A document type has a list of association rules which define whether it matches an opened XML document.
You say you are working on a TEI ODD file.
We have a special document type for it called TEI ODD.
If you look at the association rules, this document type matches all TEI documents with the TEI namespace and the .odd extension.
The default used schema (located in the Schema tab) for it in Oxygen 13.2 is located here:
OXYGEN_INSTALL_DIR\frameworks\tei\xml\tei\custom\schema\relaxng\brown_odds.rng
From what I know the brown_odds.rng was updated in Oxygen 14 which should be available in a couple of days.
Regards,
Radu