You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Dharamveer Salecha <dh...@wilco-int.com> on 2000/12/07 07:16:27 UTC

[BUG in Xerces] Character Entity References

Hi,
I attempted at producing a FO testcase with unicode characters.
Xerces works fine for character entity reference like &#0041;
But, it gives errors for some character entity references like &#00C6;

When I use
<fo:block>&#00C6;</fo:block>
I get the following error:

FOP 0.15
using SAX parser org.apache.xerces.parsers.SAXParser
using renderer org.apache.fop.render.pdf.PDFRenderer
using element mapping org.apache.fop.fo.StandardElementMapping
using element mapping org.apache.fop.svg.SVGElementMapping
using property list mapping org.apache.fop.fo.StandardPropertyListMapping
using property list mapping org.apache.fop.svg.SVGPropertyListMapping
building formatting object tree
FATAL ERROR: The character reference must end with the ';' delimiter.

regards
Dharam

----Original Message-----
From:	Fotis Jannidis [SMTP:fotis.jannidis@lrz.uni-muenchen.de]
Sent:	Monday, November 27, 2000 7:17 PM
To:	fop-dev@xml.apache.org
Subject:	RE: [BUG] Characters

Hi Dharamveer, 

> Hi Fotis, 
>  Thanks for pointing out the exact point of error. I followed this to
notice
> that:
> mu char with unicode 0x00B5 is re-defined under the Symbol font mapping
(see
> below - lines from the codegen files).
> The To be done(TBD) comment indicates that the doublettes must be removed.
> Do it mean that the second-entry must be removed ?
Yes. the first value is overwritten by the second, which is wrong. 
Thanks for pointing this out. 

> I could help in any ways to make it robust.

charlist.xml  is input for an xslt stylesheet which uses it to write the 
file CodePointMapping in org.apache.fop.render.pdf which is used 
for all code mappings in Fop. If you want to make it more robust, 
you could write a fo test file which displays every character in the 
list together with its unicode value and then compare this output with 
the unicode code charts at http://www.unicode.org/charts/

This would be very useful.

Fotis
--------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. 
Any review, retransmission, dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. 
If you received this in error, please contact the sender and delete the materialfrom any computer.
--------------------------------------------------------------------------------