Re: Terminating..

reinis@apollo.lv wrote:
	Using the latest tidy (on linux(RH), the one of 15 march) ...
	HTML Tidy for Linux/x86 (vers 1st March 2002; built on Mar 15 2002, at 23:33:08)
	Parsing "new.htm"
	line 4 column 1 - Warning: <table> lacks "summary" attribute
	line 12 column 20 - Error: <p> missing '>' for end of tag
	...

When we look at the text in question, we find
	<P class=MsoNormal><?xml:namespace prefix = o /><o:p>&nbsp;</o:p></P></TD>
                           ^^                         ^^

In SGML, processing instructions begin with '<?' and end with '>'.
In XML,  processing instructions begin with '<?' and end with '?>'.

If the input is supposed to be XML, then Tidy would necessarily have
swallowed the rest of the input at this point looking for the closing
'?>'.  Does Tidy need a flag to treat '/>' as if it were '?>' ?

I note that this is NOT how you declare XML namespaces.
In XML, you can't have a name space prefix without saying what URI
the prefix represents.  If the whole thing is a single DIV, you'd
have
    <DIV class=Section1 xmlns:o="http://www.msdn.com/foo/bar/ick.asp">
or whatever the URI was.

Received on Monday, 18 March 2002 23:10:10 UTC