OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   DTD validation for HTML dtd

[ Lists Home | Date Index | Thread Index ]
  • From: Michele Lee <mclee@oblix.com>
  • To: xml-dev@xml.org
  • Date: Mon, 13 Mar 2000 16:20:19 -0800


Hi,

I have prepared a DTD and want to validate XML documents (using Apache's
xerces parser).  The problem is, my XML document can embed HTML tags.
Therefore, I thought I just need to include the HTML entity referencing
the (X)HTML dtd.  However, the validation fails with the following error
message:

============================
[Fatal Error] xhtml1-transitional.dtd:620:30: The value of attribute
"charset" m
ust begin with either a single or double quote character.
Stopping after fatal error: The value of attribute "charset" must begin
with eit
her a single or double quote character.
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1273
)
========================

The XML document:
<?xml version="1.0"?>
<!DOCTYPE test SYSTEM "test.dtd">
<test>
hello<BR/>
</test>

========================

The DTD document:
<!ENTITY % HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
%HTML;

<!ELEMENT test ( ANY )>

==========================

Is this a problem with the parser or the DTD that I'm using for HTML
tags?  How can I get around this problem?

thanks,

--Michele





***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS