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 KS...@iflexsolutions.com on 2004/06/10 11:01:54 UTC

How to handle &in fop

Hi everybody,

When the data contains '&' like CUSTOMER_NAME= "L&G ASSURANCE SOCIETY
LTD " fop is throwing the following error:

Caused By : javax.xml.transform.TransformerException :
org.xml.sax.SAXParseExcep

tion: The reference to entity "G" must end with the ';' delimiter.

 

Can anybody help in handling the character '&'.

 

With regards

Bhaskar

 


Re: How to handle &in fop

Posted by Thorbjørn Ravn Andersen <no...@c.dk>.
KS.Bhaskar@iflexsolutions.com wrote:

> Hi everybody,
>
> When the data contains ‘&’ like CUSTOMER_NAME= "L&G ASSURANCE SOCIETY 
> LTD " fop is throwing the following error:
>
> Caused By : javax.xml.transform.TransformerException : 
> org.xml.sax.SAXParseExcep
>
> tion: The reference to entity "G" must end with the ';' delimiter.
>
> Can anybody help in handling the character ‘&’.
>
Use &amp; instead.

To ensure that you always generate proper XML regardless of character 
set, you should change all characters above 127, and <, > and & to 
"&#numericvalue;" instead. The numeric value is the unicode value of the 
character.

-- 
  Thorbjoern Ravn Andersen      "...plus...Tubular Bells!"


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