[Home] [By Thread] [By Date] [Recent Entries]

  • From: Michele Lee <mclee@o...>
  • To: xml-dev@x...
  • 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@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member