DocBook4.2 validation
This should cover W3C XML Schema, Relax NG and DTD related problems.
DocBook4.2 validation
How can I configure oxygen to validate xml using docbook4.2?
I tried changing the Schema URI to ${frameworks}/4.2/dtd/docbookx.dtd via the Options/Preferences/Document Type Association/DocBook 4 entry. This did not work.
My dtd has the following
<!ENTITY % calstblx PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "soextblx.dtd" >
which causes the following validation error when validating my xml:
SystemID: C:\Program Files\Oxygen XML Editor 9\frameworks\docbook\4.4\dtd\soextblx.dtd
Location: 316:1
Description: A '(' character or an element type is required in the declaration of element type "entry".
I tried changing the Schema URI to ${frameworks}/4.2/dtd/docbookx.dtd via the Options/Preferences/Document Type Association/DocBook 4 entry. This did not work.
My dtd has the following
<!ENTITY % calstblx PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "soextblx.dtd" >
which causes the following validation error when validating my xml:
SystemID: C:\Program Files\Oxygen XML Editor 9\frameworks\docbook\4.4\dtd\soextblx.dtd
Location: 316:1
Description: A '(' character or an element type is required in the declaration of element type "entry".
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DocBook4.2 validation
Post by sorin_ristache »
Hello,
Do not modify the DocBook 4 document type from Options -> Preferences -> Document Type Association. Just use the URL of the DocBook 4.2 DTD in your XML document:
The XML catalog of oXygen maps the URL to the local version of the DocBook 4.2 DTD.
Regards,
Sorin
Do not modify the DocBook 4 document type from Options -> Preferences -> Document Type Association. Just use the URL of the DocBook 4.2 DTD in your XML document:
Code: Select all
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<article>
...
</article>
Regards,
Sorin
Re: DocBook4.2 validation
Thanks for the response.
I found that I could just change the eternal reference so that the XML processor will not try and generate an alternate URI.
This
<!ENTITY % calstblx PUBLIC ""
"http://www.docbook.org/xml/4.2/soextblx.dtd" >
instead of this
<!ENTITY % calstblx PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "soextblx.dtd" >
I found that I could just change the eternal reference so that the XML processor will not try and generate an alternate URI.
This
<!ENTITY % calstblx PUBLIC ""
"http://www.docbook.org/xml/4.2/soextblx.dtd" >
instead of this
<!ENTITY % calstblx PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "soextblx.dtd" >
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DocBook4.2 validation
Post by sorin_ristache »
It is not an alternate URI, it is the full path of the DTD obtained by the XML parser by resolving a relative reference to a DTD used in the XML document (in your case "soextblx.dtd") to a full path by appending the relative path to the directory of the XML document. You should use a standard reference for a DocBook DTD, that is http://www.oasis-open.org/docbook/xml/4.2/docbook.dtd, http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd, etc. so that it is resolved to the local version using an XML catalog.
Regards,
Sorin
Regards,
Sorin
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