HTML DTD

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 UTC