W3C home > Mailing lists > Public > www-html@w3.org > January 2003

HTML DTD

From: Dervla O'Keeffe <okeeffda@tcd.ie>
Date: Fri, 10 Jan 2003 05:52:42 +0000
To: www-html@w3.org
Message-ID: <3E78DA22@ntserver-e2w2.tcd.ie>

Hi,

I am currently using Xerces DOM parser (org.apache.xerces.parsrs.DOMParser) to 
try and parse HTML by using the transitional HTML 4.01 DTD as an external DTD 
with an input xml (html) file, as per DTD on the W3 subsite at:

 http://www.w3.org/TR/REC-html40/loose.dtd
(I am aware that HTML is not XML, which is why I am using the DTD.)

I do not understand the following line of the DTD:

 <!ELEMENT (%fontstyle;|%phrase;) - - (%inline;)*>

This ELEMENT does not appear to have a name.  Xerces is having the same 
problem, the message I'm getting says:

[Fatal Error]  html.dtd:159.23: The element type is required in the element 
type declaration.

I would be very grateful for any help.

Thanking you,

Dervla O'Keeffe

Vita Brevis
Received on Friday, 10 January 2003 00:56:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT