Microsot parser is OK (Was: Re: Copyright symbol in FOP)

Subject: Microsot parser is OK (Was: Re: Copyright symbol in FOP)
From: "Nikolai Grigoriev" <grig@xxxxxxx>
Date: Thu, 27 Apr 2000 14:47:50 +0400
Hi all,

recently, I posted a message about a presumed bug in MSXML parser:

> But be careful: MSXML chokes on external entities in DTD ...

After a bit more thorough analysis, I have understood that the problem lies with
my files, rather than with MS. Their parser chokes on the following entity
declarations :

<!ENTITY amp    "&#38;">
<!ENTITY lt     "&#60;">

However, I have re-read the XML spec and discovered a special section
on how to redeclare the built-in entities (4.6 "Predefined entities"). I
realized that I was wrong in copying the declarations blindly from the
HTML 4.0 spec. It should be double-escaped like this:

<!ENTITY amp    "&#38;#38;">
<!ENTITY lt     "&#38;#60;">

With this correction, everything works as it should. My apologies to
Jonathan Marsh and Andy Kimball for unjustified accusations.

What is strange is that neither XT nor Saxon reported that error.
Is it a conformant behaviour?

Best regards,

Nikolai Grigoriev
RenderX




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread