DTD#printExternal in xml4j 1.1.4

Thuy-Linh Nguyen (tln@insect.sd.monash.edu.au)
Wed, 28 Oct 1998 22:01:53 +1100 (EST)


Hi,

I tried the DTD#printExternal for the HTML40strict.xml.dtd with default
encoding. Something weird seems to happen. For eg the original declaration

<!ENTITY quot "&#34;">
<!ENTITY amp "&#38;">
<!ENTITY lt "&#60;">
<!ENTITY gt "&#62;">

is changed to

<!ENTITY quot "&#x22;">
<!ENTITY amp "&#x26;">
<!ENTITY lt "<">
<!ENTITY gt ">">

And

<!ENTITY % coreattrs
"id ID #IMPLIED
class CDATA #IMPLIED
style %StyleSheet; #IMPLIED
title %Text; #IMPLIED"
>

is changed to

<!ENTITY % coreattrs "id ID #IMPL
IED&#xa; class CDATA #IMPLIED&#xa; st
yle CDATA #IMPLIED&#xa; title CDATA
#IMPLIED">

etc.

I also noticed similar changes also happened with version 1.0.4,
although the changes appear differently. Why is that ?

Thank you !
TL