Bug 83558

Summary: error if root and DTD name are different cases
Product: [Retired] Red Hat Public Beta Reporter: Tammy Fox <tammy.c.fox>
Component: xmltoAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: phoebe   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-05 17:11:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tammy Fox 2003-02-05 16:33:27 UTC
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:
<!DOCTYPE ARTICLE PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
 "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 17:11:28 UTC
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).