Re: White Space Added but Not Needed

2012-06-22 Thread Rita Greenberg

Oops - I thought it worked but no - it's not!


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: White Space Added but Not Needed

2012-06-22 Thread Rita Greenberg
Thanks Thomas!
This time I got it to work correctly.

I used:
[code]

  #
  
   


Much appreciated!


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: White Space Added but Not Needed

2012-06-22 Thread Rita Greenberg
 Thanks Thomas.
I tried that and the space disappeared but the wrapping was gone also!




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: White Space Added but Not Needed

2012-06-22 Thread Thomas Morrison
Hit send too early.

If you create a variable which contains the #, then you can use concat and 
normalize-space to create the string you want.


  #



Then in the code:



(Typed, not tested...)

Best regards,
Tom Morrison
Senior Manager, Systems Software Projects
 
Micro Focus
thomas.morri...@microfocus.com
8310 N Capital of Texas Hwy
Building 2, Suite 100
Austin, TX 78731
USA
 
ShoreTel: 27018
Direct: +1.512.340.4822
Mobile: +1.512.785.9347


-Original Message-
From: Thomas Morrison [mailto:thomas.morri...@microfocus.com] 
Sent: Friday, June 22, 2012 2:13 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: White Space Added but Not Needed

Rita,

There are a couple of different techniques you can use better to control the 
whitespace.

First, you could use an  which would allow you to construct an 
if-then-else so you can specify completely either a "28" or #28 without dealing 
with the whitespace problem.

Second, the concat() function in this situation might very well be a good 
friend, when used with normalize-space.

Con
Best regards,
Tom Morrison
Senior Manager, Systems Software Projects
 
Micro Focus

-Original Message-
From: Rita Greenberg [mailto:rgreenb...@medata.com] 
Sent: Friday, June 22, 2012 12:57 PM
To: fop-users@xmlgraphics.apache.org
Subject: White Space Added but Not Needed

Hello.

In my xsl:fo stylesheet I'm using wrap-option="wrap" on a fo:cell level.
I'm printing a hash (#) sign before an xml element if a cetain condition is met.

So, my element has, for example, a value of "28" and if the condition is met I 
want to print #28. The problem is that I get # 28. A space is being added that 
I never asked for!

I've tried using strip-space, and normalize-space but niether of them worked.

The interesting thing is that when I wrap the # within a fo:inline, I don;t get 
the space but then I don't get the wrapping either.

Here's my code.

[code]


  #
  
  
   


[code]

Thanks,
Rita


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


This message has been scanned by MailController - portal1.mailcontroller.co.uk

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: White Space Added but Not Needed

2012-06-22 Thread Thomas Morrison
Rita,

There are a couple of different techniques you can use better to control the 
whitespace.

First, you could use an  which would allow you to construct an 
if-then-else so you can specify completely either a "28" or #28 without dealing 
with the whitespace problem.

Second, the concat() function in this situation might very well be a good 
friend, when used with normalize-space.

Con
Best regards,
Tom Morrison
Senior Manager, Systems Software Projects
 
Micro Focus

-Original Message-
From: Rita Greenberg [mailto:rgreenb...@medata.com] 
Sent: Friday, June 22, 2012 12:57 PM
To: fop-users@xmlgraphics.apache.org
Subject: White Space Added but Not Needed

Hello.

In my xsl:fo stylesheet I'm using wrap-option="wrap" on a fo:cell level.
I'm printing a hash (#) sign before an xml element if a cetain condition is met.

So, my element has, for example, a value of "28" and if the condition is met I 
want to print #28. The problem is that I get # 28. A space is being added that 
I never asked for!

I've tried using strip-space, and normalize-space but niether of them worked.

The interesting thing is that when I wrap the # within a fo:inline, I don;t get 
the space but then I don't get the wrapping either.

Here's my code.

[code]


  #
  
  
   


[code]

Thanks,
Rita


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


This message has been scanned by MailController - portal1.mailcontroller.co.uk

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: White Space Added but Not Needed

2012-06-22 Thread Rita Greenberg
Glenn Adams  skynav.com> writes:

> 
> 
> this is a problem with your XSL style sheet, not with FOP processing; you 
should review the XSL-FO output from the XSLT process to see what the real 
input to FOP is
> 
> 
Thanks Glen. I need to figure out how to review the XSL-FO output.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: White Space Added but Not Needed

2012-06-22 Thread Rita Greenberg
Amick, Eric  mail.house.gov> writes:

> 
> But you *do* ask for whitespace-the newline after the # sign and the spaces 
at the start of the following line
> do that. Use # instead.
> 
> Eric Amick   Systems Engineer II
> Legislative Computer Systems
> 

Thanks Eric for your quick response.
I tried  and that removed the white space - however I lost my 
wrapping! The cell's contents overflowed with the prior cell.




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: White Space Added but Not Needed

2012-06-22 Thread Amick, Eric
But you *do* ask for whitespace-the newline after the # sign and the spaces at 
the start of the following line do that. Use # instead.

Eric Amick   Systems Engineer II
Legislative Computer Systems

> -Original Message-
> From: Rita Greenberg [mailto:rgreenb...@medata.com]
> Sent: Friday, June 22, 2012 13:57
> To: fop-users@xmlgraphics.apache.org
> Subject: White Space Added but Not Needed
> 
> Hello.
> 
> In my xsl:fo stylesheet I'm using wrap-option="wrap" on a fo:cell
> level.
> I'm printing a hash (#) sign before an xml element if a cetain
> condition is met.
> 
> So, my element has, for example, a value of "28" and if the condition
> is met I
> want to print #28. The problem is that I get # 28. A space is being
> added that
> I never asked for!
> 
> I've tried using strip-space, and normalize-space but niether of them
> worked.
> 
> The interesting thing is that when I wrap the # within a fo:inline, I
> don;t get
> the space but then I don't get the wrapping either.
> 
> Here's my code.
> 
> [code]
> 
> 
>   #
>   
>   
>    
> 
> 
> [code]
> 
> Thanks,
> Rita
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: White Space Added but Not Needed

2012-06-22 Thread Glenn Adams
this is a problem with your XSL style sheet, not with FOP processing; you
should review the XSL-FO output from the XSLT process to see what the real
input to FOP is


On Fri, Jun 22, 2012 at 11:57 AM, Rita Greenberg wrote:

> Hello.
>
> In my xsl:fo stylesheet I'm using wrap-option="wrap" on a fo:cell level.
> I'm printing a hash (#) sign before an xml element if a cetain condition
> is met.
>
> So, my element has, for example, a value of "28" and if the condition is
> met I
> want to print #28. The problem is that I get # 28. A space is being added
> that
> I never asked for!
>
> I've tried using strip-space, and normalize-space but niether of them
> worked.
>
> The interesting thing is that when I wrap the # within a fo:inline, I
> don;t get
> the space but then I don't get the wrapping either.
>
> Here's my code.
>
> [code]
>
> 
>  #
>  
>  
>   
> 
>
> [code]
>
> Thanks,
> Rita
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


White Space Added but Not Needed

2012-06-22 Thread Rita Greenberg
Hello.

In my xsl:fo stylesheet I'm using wrap-option="wrap" on a fo:cell level.
I'm printing a hash (#) sign before an xml element if a cetain condition is met.

So, my element has, for example, a value of "28" and if the condition is met I 
want to print #28. The problem is that I get # 28. A space is being added that 
I never asked for!

I've tried using strip-space, and normalize-space but niether of them worked.

The interesting thing is that when I wrap the # within a fo:inline, I don;t get 
the space but then I don't get the wrapping either.

Here's my code.

[code]


  #
  
  
   


[code]

Thanks,
Rita


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Table continuation headers

2012-06-22 Thread Glenn Adams
Perhaps you could describe what language features/extensions that XEP uses
to do this?

On Fri, Jun 22, 2012 at 8:59 AM, Stefan Hinz  wrote:

> A colleague of mine is working to implement company standards for tables.
> In PDF, those standards require table continuation headers, by repeating
> the table title followed by the string "(Continued)" at the top of the page.
>
> XEP supports this, but FOP doesn't. Does anyone know of plans to support
> this in FOP in the future?
>
> --
> Cheers,
>
> Stefan Hinz , MySQL Documentation Manager
>
> Phone: +49-30-82702940, Fax: +49-30-82702941, http://dev.mysql.com/doc
>
> ORACLE Deutschland B.V.&  Co. KG
> Registered Office: Riesstr. 25, 80992 Muenchen, Germany
> Commercial Register: Local Court Of Munich, HRA 95603
> Managing Director: Jürgen Kunz
>
> General Partner: ORACLE Deutschland Verwaltung B.V.
> Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
> Register Of Chamber Of Commerce: Midden-Niederlande, No. 30143697
> Managing Directors: Alexander van der Ven, Astrid Kepper, Val Maher
>
> --**--**-
> To unsubscribe, e-mail: 
> fop-users-unsubscribe@**xmlgraphics.apache.org
> For additional commands, e-mail: 
> fop-users-help@xmlgraphics.**apache.org
>
>


Table continuation headers

2012-06-22 Thread Stefan Hinz
A colleague of mine is working to implement company standards for 
tables. In PDF, those standards require table continuation headers, by 
repeating the table title followed by the string "(Continued)" at the 
top of the page.


XEP supports this, but FOP doesn't. Does anyone know of plans to support 
this in FOP in the future?


--
Cheers,

Stefan Hinz , MySQL Documentation Manager

Phone: +49-30-82702940, Fax: +49-30-82702941, http://dev.mysql.com/doc

ORACLE Deutschland B.V.&  Co. KG
Registered Office: Riesstr. 25, 80992 Muenchen, Germany
Commercial Register: Local Court Of Munich, HRA 95603
Managing Director: Jürgen Kunz

General Partner: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Register Of Chamber Of Commerce: Midden-Niederlande, No. 30143697
Managing Directors: Alexander van der Ven, Astrid Kepper, Val Maher

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: SubstituteFonts true/false propertie in fop config ?

2012-06-22 Thread Pascal Sancho
Hi,

metric files are deprecated.
The only usage for these metric files is when you don't want to embed
font files, witch is not used today.


2012/6/22 Marc :
> Youcan embedded fonts in the pdf file.
> to do that you have to modify the fop configuration file and dispose of the
> metrics file for the fonts you use.
> Marc
>
> Le vendredi 22 juin 2012 14:58:43, Christian Pestel a écrit :
>>
>> Hi,
>> We use Fop on a workstation to design and view pdf document (after Fop
>> transform)
>> After that, documents are rendered on a production server.
>> Sometimes, the production server don’t contain fonts necessary for
>> theses documents and Fop subtitute missing fonts.
>> Maybe SubstituteFonts true/false propertie in fop config would be
>> useful to failed the fo2pdf transformation instead subtitute font ?
>>
>> **
>>
>> Christian Pestel
>>
>> christian.pes...@orange.fr 
>>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>



-- 
pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: SubstituteFonts true/false propertie in fop config ?

2012-06-22 Thread Christian Pestel
ok. I log an issue.
Thank you Robert.

 

Christian Pestel

christian.pes...@orange.fr


From: Robert Meyer 
Sent: Friday, June 22, 2012 3:58 PM
To: fop-users@xmlgraphics.apache.org 
Subject: RE: SubstituteFonts true/false propertie in fop config ?

Hi,

After reading the documentation and looking in the code, it would appear as you 
say that there is currently no facility to provide the option to fail if a font 
is not present.

I would therefore recommend you log a new Fop issue on bugzilla [1] so that 
should someone have time in the future, they can implement it.

[1] https://issues.apache.org/bugzilla/

Best Regards,

Robert Meyer




From: christian.pes...@orange.fr
To: fop-users@xmlgraphics.apache.org
Subject: SubstituteFonts true/false propertie in fop config ?
Date: Fri, 22 Jun 2012 14:58:43 +0200


Hi,

We use Fop on a workstation to design and view pdf document (after Fop 
transform)
After that, documents are rendered on a production server.
Sometimes, the production server don’t contain fonts necessary for theses 
documents and Fop subtitute missing fonts.

Maybe SubstituteFonts true/false propertie in fop config would be useful to 
failed the fo2pdf transformation instead subtitute font ? 



Christian Pestel

christian.pes...@orange.fr


Re: SubstituteFonts true/false propertie in fop config ?

2012-06-22 Thread Christian Pestel

Thank you Marc.

Christian Pestel

christian.pes...@orange.fr


-Message d'origine- 
From: Marc

Sent: Friday, June 22, 2012 3:32 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: SubstituteFonts true/false propertie in fop config ?

Youcan embedded fonts in the pdf file.
to do that you have to modify the fop configuration file and dispose of
the metrics file for the fonts you use.
Marc

Le vendredi 22 juin 2012 14:58:43, Christian Pestel a écrit :

Hi,
We use Fop on a workstation to design and view pdf document (after Fop
transform)
After that, documents are rendered on a production server.
Sometimes, the production server don’t contain fonts necessary for
theses documents and Fop subtitute missing fonts.
Maybe SubstituteFonts true/false propertie in fop config would be
useful to failed the fo2pdf transformation instead subtitute font ?

**

Christian Pestel

christian.pes...@orange.fr 



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org 



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: SubstituteFonts true/false propertie in fop config ?

2012-06-22 Thread Robert Meyer

Hi,

After reading the documentation and looking in the code, it would appear as you 
say that there is currently no facility to provide the option to fail if a font 
is not present.

I would therefore recommend you log a new Fop issue on bugzilla [1] so that 
should someone have time in the future, they can implement it.

[1] https://issues.apache.org/bugzilla/

Best Regards,

Robert Meyer

From: christian.pes...@orange.fr
To: fop-users@xmlgraphics.apache.org
Subject: SubstituteFonts true/false propertie in fop config ?
Date: Fri, 22 Jun 2012 14:58:43 +0200





Hi,
 
We use Fop on a workstation to design and view pdf document (after Fop 
transform)
After that, documents are rendered on a production server.
Sometimes, the production server don’t contain fonts necessary for theses 
documents and Fop subtitute missing fonts.
 
Maybe SubstituteFonts true/false propertie in fop config would be useful to 
failed the fo2pdf transformation instead subtitute font ? 
 







 
Christian 
Pestel
christian.pes...@orange.fr

Re: SubstituteFonts true/false propertie in fop config ?

2012-06-22 Thread Marc

Youcan embedded fonts in the pdf file.
to do that you have to modify the fop configuration file and dispose of 
the metrics file for the fonts you use.

Marc

Le vendredi 22 juin 2012 14:58:43, Christian Pestel a écrit :

Hi,
We use Fop on a workstation to design and view pdf document (after Fop
transform)
After that, documents are rendered on a production server.
Sometimes, the production server don’t contain fonts necessary for
theses documents and Fop subtitute missing fonts.
Maybe SubstituteFonts true/false propertie in fop config would be
useful to failed the fo2pdf transformation instead subtitute font ?

**

Christian Pestel

christian.pes...@orange.fr 



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



SubstituteFonts true/false propertie in fop config ?

2012-06-22 Thread Christian Pestel
Hi,

We use Fop on a workstation to design and view pdf document (after Fop 
transform)
After that, documents are rendered on a production server.
Sometimes, the production server don’t contain fonts necessary for theses 
documents and Fop subtitute missing fonts.

Maybe SubstituteFonts true/false propertie in fop config would be useful to 
failed the fo2pdf transformation instead subtitute font ? 

 

Christian Pestel

christian.pes...@orange.fr