RE: Ampersand in FOP

2016-01-21 Thread Robert Meyer
Try using &
For example:
Cat & Mouse
> From: [email protected]
> To: [email protected]
> Subject: Ampersand in FOP
> Date: Thu, 21 Jan 2016 07:47:33 +
> 
> I’m struggling to get an ampersand (“&”) outputting correctly with FOP. It 
> always comes out as “&”
> 
> I want to render the text 
> 
> Cat & Mouse
> 
> The source is a XML file, which contains:
> 
> Cat ∓ Mouse
> 
> (This is an XML file, so the “&” has to be escaped to “&” for the file to 
> be valid)
> 
> My XSLT transforms this into:
> 
> Cat & Mouse
> 
> (This is still an XML file, so the “&” still has to be “&” for it to be 
> valid)
> 
> And FOP renders it as:
> 
> Cat & Mouse.
> 
> My googling hasn’t been very successful. The FOP FAQ just says to escape the 
> “&” (Which I’ve done!) The best suggestion I found was to enclose the initial 
> “&” in a  
> 
> What am I missing? I’ve tried both FOP 1.1 & FOP 2.0
> 
> Thanks,
> 
> GTG
> -- 
> Gordon 
> Ross�Т�ХF�V�7V'67&�&R�R���âf��W6W'2�V�7V'67&�&T���w&��72�6�R��&pФf�"FF�F����6����G2�R���âf��W6W'2ֆV����w&��72�6�R��&pР
  

Re: Ampersand in FOP

2016-01-21 Thread Pascal Sancho
Hi,

your XSL-FO snippet [1] is rendered correctly by FOP: "Cat & Mouse".
I suspect something being wrong in your XSLT, so you should look at it closer.
More appropriate list for this is XSLT list (see [2]).

[1] Cat & Mouse
[2] http://www.mulberrytech.com/xsl/xsl-list/


2016-01-21 8:47 GMT+01:00 Gordon Ross :
> I’m struggling to get an ampersand (“&”) outputting correctly with FOP. It 
> always comes out as “&”
>
> I want to render the text
>
> Cat & Mouse
>
> The source is a XML file, which contains:
>
> Cat ∓ Mouse
>
> (This is an XML file, so the “&” has to be escaped to “&” for the file to 
> be valid)
>
> My XSLT transforms this into:
>
> Cat & Mouse
>
> (This is still an XML file, so the “&” still has to be “&” for it to be 
> valid)
>
> And FOP renders it as:
>
> Cat & Mouse.
>
> My googling hasn’t been very successful. The FOP FAQ just says to escape the 
> “&” (Which I’ve done!) The best suggestion I found was to enclose the initial 
> “&” in a 
>
> What am I missing? I’ve tried both FOP 1.1 & FOP 2.0
>
> Thanks,
>
> GTG
> --
> Gordon Ross



-- 
pascal

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]