DocBook Validation difference in v.10 and 8.2

Oxygen general issues.
robert3L
Posts: 21
Joined: Sun Jan 15, 2006 11:36 am

DocBook Validation difference in v.10 and 8.2

Post by robert3L »

My production tool for DocBook has been XML Editor v. 8.2. I just installed v. 10 to try to see if my projects are OK. I opened the project in the Author application. I have a DocBook project with main book file like so...

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "file:///c:/docbook-xml-4.4/docbookx.dtd" [
<!ENTITY userguide.xml SYSTEM "userguide.xml">
<!ENTITY adminguide.xml SYSTEM "adminguide.xml">
<!ENTITY reference.xml SYSTEM "reference.xml">
<!ENTITY user_reference.xml SYSTEM "user_reference.xml">]>
<book>
...
&userguide.xml;
&adminguide.xml;
&reference.xml;
&user_reference.xml;
</book>
In v. 8.2 when I edit any of the entity files, they show as valid. When I edit them in v. 10 they show as invalid, caused by links pointing outside the file. E.g links in userguide.xml that point to IDs in reference.xml cause the userguide.xml file to show up as invalid in Author v. 10, but not in 8.2. When I run Validate on the book file in 8.2 it validates everything and flags errors in any of the entity files. When I run Validate on the book file in v. 10, it reports a valid document, yet the individual component file report errors. So it looks like only the book file is being validated in v. 10.

What's changed? What should I believe about the validity of my files?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: DocBook Validation difference in v.10 and 8.2

Post by sorin_ristache »

Hello,

The built-in XML validator was improved from version 8.2 to version 10.0 so the differences can be caused by that.
robert3L wrote:In v. 8.2 when I edit any of the entity files, they show as valid. When I edit them in v. 10 they show as invalid, caused by links pointing outside the file. E.g links in userguide.xml that point to IDs in reference.xml cause the userguide.xml file to show up as invalid in Author v. 10, but not in 8.2.
Other cause may be a validation scenario used in version 8.2 for validating the entity files so that they are valid but not used in version 10.0 so that they are invalid.
robert3L wrote:When I run Validate on the book file in 8.2 it validates everything and flags errors in any of the entity files. When I run Validate on the book file in v. 10, it reports a valid document, yet the individual component file report errors.
I cannot reproduce that. I get the same result in versions 8.2 and 10.0: it validates everything and flags errors in any of the entity files. Please send sample files for reproducing the problem.


Regards,
Sorin
Post Reply