Page 1 of 1

problem creating xml document with DTD

Posted: Wed Aug 24, 2005 10:54 am
by muewi
Hi all,

I'm new to Oxygen and try to find out if it is useful for me.
Here is my first obstacle: I want to create a XML file based on TEI.
After supplying the path to the DTD (frameworks/tei/xml/teip4/schema/dtd/tei2.dtd), I can't pick the document root - there are no entries; and if I just click Ok, then there is no DTD associated to my xml file.

Frank :?

Posted: Wed Aug 24, 2005 11:27 am
by Radu
Hi Frank

The easiest and recommanded way to make a TEI XML file is to click the New From Templates Button located on the toolbar and choose the type of TEI document you want to edit.
The DTD file that you chose (tei2.dtd) does not contain any elements so that's there are no entries in the document root combo. For example to create a TEI Lite XML you can choose the "frameworks/tei/xml/teip4/custom/schema/dtd/teixlite.dtd" DTD file.

Hope this helps.
Ragards, Radu

Posted: Thu Sep 01, 2005 11:21 am
by george
Hi Frank,

Just a comment: the TEI P4 DTD is a SGML DTD and in order to obtain an XML DTD you need some customization in the DTD internal subset, at minimum you will need to declare the TEI.XML and TEI.prose parameter entities with the INCLUDE value like below:

<!DOCTYPE TEI.2 PUBLIC "-//TEI P4//DTD Main Document Type//EN" "" [

Best Regards,