W3C home > Mailing lists > Public > www-validator@w3.org > March 2007

Re: DITA validation

From: Nick Kew <nick@webthing.com>
Date: Mon, 12 Mar 2007 08:56:42 +0000
To: www-validator@w3.org
Message-ID: <20070312085642.6a99a754@grimnir>

On Fri, 09 Mar 2007 12:07:10 -0800
"Jeremy H. Griffith" <jeremy@omsys.com> wrote:

> <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
>  "reference.dtd">

Where is the validator supposed to find "reference.dtd" ?

> <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">

Or "topic.dtd"?

> The nessage is:
>   Sorry! This document can not be checked.
>   Fatal Error: cannot find "reference.dtd"; tried 
>   I could not parse this document, because it makes reference to 
>   a system-specific file instead of using a well-known public 
>   identifier to specify the type of markup being used. 

What's not clear about that?  The fact you have a "reference.dtd"
in the appropriate directory on your machine doesn't mean the
validator has one in the same place!

> The docs were uploaded as type text/xml from Opera 9.01.  
> Any suggestions?

There are lots of XML validation tools (far more than for HTML),
and you probably have one already installed yourself (for example,
if you have Xerces or xmllint).  They'll also need to resolve
your relative URLs like "reference.dtd".

Nick Kew

Application Development with Apache - the Apache Modules Book
Received on Monday, 12 March 2007 08:56:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:51 UTC