Framework configuration for doctype SYSTEM identifier
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 71
- Joined: Sat Jan 07, 2017 1:23 am
Framework configuration for doctype SYSTEM identifier
Hi,
I'm setting up a framework to view ONIX files, which one of our vendors requires with a doctype declaration that has a system ID instead of a public ID:
For all my previous frameworks, I've been able to create an association rule based on the DTD's public ID. In this case, I created an association rule like this:
Is there a way to tell Oxygen to ignore the doctype system ID for files with this root element? Or should I be trying something different?
I'm setting up a framework to view ONIX files, which one of our vendors requires with a doctype declaration that has a system ID instead of a public ID:
Code: Select all
<!DOCTYPE ONIXMessage SYSTEM "http://www.editeur.org/onix/2.1/reference/onix-international.dtd">
- Namespace: *
- Root local name: ONIXMessage
- File name: *
- Public ID: *
- Attribute:
- Local name: *
- Namespace: *
- Value: *
- Java class:
Is there a way to tell Oxygen to ignore the doctype system ID for files with this root element? Or should I be trying something different?
-
- Posts: 9421
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Framework configuration for doctype SYSTEM identifier
Hi,
If in the Oxygen Preferences->"Document type association" page you edit your framework configuration, it has an "XML catalogs" tab.
https://www.oxygenxml.com/doc/versions/ ... alogs.html
In your framework's folder you can create for example an XML catalog like this:
and place next to it the file "onix-international.dtd" containing a local copy of the DTD.
Then in the framework's XML catalogs tab refer to this framework specific XML catalog.
After this, Oxygen should pass the reference to the remote DTD through the XML catalog support, find the local DTD and use it for validation.
Regards,
Radu
If in the Oxygen Preferences->"Document type association" page you edit your framework configuration, it has an "XML catalogs" tab.
https://www.oxygenxml.com/doc/versions/ ... alogs.html
In your framework's folder you can create for example an XML catalog like this:
Code: Select all
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system systemId="https://www.editeur.org/onix/2.1/reference/onix-international.dtd" uri="onix-international.dtd"/>
</catalog>
Then in the framework's XML catalogs tab refer to this framework specific XML catalog.
After this, Oxygen should pass the reference to the remote DTD through the XML catalog support, find the local DTD and use it for validation.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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