You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Holk, David A" <da...@groton.pfizer.com> on 2003/09/12 17:03:00 UTC

problem with entity characters - <

I would expect this:

<fo:block font-size="7pt">&lt;/= 1.5%</fo:block>

to be rendered as:

</= 1.5%

in my pdf. But instead I am getting this:

&lt;/= 1.5%

How can I get my expected output?

Thanks,

Dave





LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: problem with entity characters - <

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Holk, David A wrote:

> I would expect this:
> <fo:block font-size="7pt">&lt;/= 1.5%</fo:block>
> to be rendered as:
> </= 1.5%
> in my pdf. But instead I am getting this:
> &lt;/= 1.5%
> How can I get my expected output?

You are probably confusing XML documents and XML APIs. In a
XML document you'll have to encode a less sign as &lt;. If
you put text in a DOM tree, you just use '<'. You don't have
markup in DOM tree text nodes, therefore no escaping of
special characters is necesary. Same for SAX character
events.
Another possiblity is that you've some doubel escaping
somewhere. It's hard to say without knowing how you feed
input to the FO processor and how your data is generated.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org