logo       

Bug in doc/emit lib?: msg#01544

Subject: Bug in doc/emit lib?
Hi,

I have some problems with document rendering in PCE. I used the code from
the PCE manual, subsection "11.10.4 Using the ``doc/emit'' library", and the
sample html file provided there.

I use XPCE 6.4.3 with SWI-Prolog version 5.4.7 on WinXP SP2.

Issuing the command "show_html('sample.html')." does not have the desired
effect. SWI issues the error messages:

ERROR: SGML2PL(sgml): sample.html:23: Syntax error: Bad attribute list,
found "/
ListOfNameValue/ re ... nd <b"
Warning: SGML2PL(sgml): sample.html:25: Ignored end-tag for "b" which is
not open
Warning: SGML2PL(sgml): sample.html:26: Inserted omitted end-tag for "var"

Worse is the fact that text may be rendered over other text, as the
picture
http://www.cs.rhul.ac.uk/home/chris/docrender.gif
demonstrates. This seems to happen especially when enlarging the window or
making it smaller.

Also, the html code:

Where <var/ListOfNameValue/ reflects the attribute-list of the
element and <var/ListOfContent/ is mixed list of atoms representing
<em/CDATA/ and <b>element/3</b> terms representing nested elements.

is rendered as if it were

Where <b>element/3</b> terms representing nested elements.

Thanks,
Christophe Costa Florencio




<Prev in Thread] Current Thread [Next in Thread>