Bug 83558 - error if root and DTD name are different cases
error if root and DTD name are different cases
Product: Red Hat Public Beta
Classification: Retired
Component: xmlto (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2003-02-05 11:33 EST by Tammy Fox
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-02-05 12:11:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tammy Fox 2003-02-05 11:33:27 EST
Something changed between the xmlto that shipped with RHL 8.0 and the version 
version in Phoebe. I'm running version 0.0.12-2.

If I have an article with the following at the top:
 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ ]>
but the the content starts with the following:
<article id="index" lang="en">

I get the following error:

xmlto: input does not validate
/home/tfox/work/text.xml:18: validity error: Not valid: root and DTD name do not
match 'article' and 'ARTICLE'
<article id="index" lang="en">

If I change the DOCTYPE declaration to use lowercase article as well,
this error goes away. Is this a bug or is this expected behavior? I don't get
this error with the same file in RHL 8.0.
Comment 1 Tim Waugh 2003-02-05 12:11:28 EST
This is expected behaviour: xmlto now asks the parser to validate the input.  In
XML, element names are case sensitive (this isn't the case in SGML).

Note You need to log in before you can comment on or make changes to this bug.