problem creating xml document with DTD

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
muewi
Posts: 26
Joined: Wed Aug 24, 2005 10:47 am

problem creating xml document with DTD

Post by muewi » Wed Aug 24, 2005 10:54 am

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.

Regards,
Frank :?

Radu
Posts: 6916
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu » Wed Aug 24, 2005 11:27 am

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

george
Site Admin
Posts: 2102
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Thu Sep 01, 2005 11:21 am

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" "http://www.tei-c.org/Guidelines/DTD/tei2.dtd" [
<!ENTITY % TEI.prose 'INCLUDE'>
<!ENTITY % TEI.XML 'INCLUDE'>
]>

Best Regards,
George

Post Reply