problem creating xml document with DTD
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 26
- Joined: Wed Aug 24, 2005 10:47 am
problem creating xml document with DTD
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
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

-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
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
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
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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