Different sort between FOP and XSL

2014-10-20 Thread Jean-Pierre Lamon
Hi all,

FOP 1.1 - XSLT 1.0

With exactly the same code for my key indexing, I'm getting two different
ordering sequences through XSLT or FOP:

XSLT (MSXML) (Tried with XML2PDF, sort is also OK)

A CACCIA DEL BOSONE DI HIGGS
A DOS DE DROMADAIRE
ABATON
ABATON
ABATON
ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI
AFFOLTER JEHANNE

First white space after A is preserved

FO

ABATON
ABATON
ABATON
A CACCIA DEL BOSONE DI HIGGS
ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI
A DOS DE DROMADAIRE

First white space A after here is ignored

Any idea?
Regards
JP



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



Re: OutOfMemoryError: Java heap space

2014-10-20 Thread Jean-Pierre Lamon
To reply to this thread
Re: OutOfMemoryError: Java heap space
Thu, 03 Jul 2014 14:35:00 GMT 
to Chandone

For my part, for the same problem, I noticed I had the 32bits version of
JRE. I installed the 64 bits version and no more OutOfMemoyError.

Regards
JP



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



Re: Different sort between FOP and XSL

2014-10-20 Thread Pascal Sancho
Hi,

Sorting is only an XSLT feature, not a XSL-FO one.
Note that sort implementation may differ from XSLT engines, as said in
XSLT-REC (see [1]):
It is possible for two conforming XSLT processors not to sort exactly
the same.

Note again that FOP bundle comes with Xalan as XSLT engine for
convenience, but you can use your own, i.e. MSXML, and feed FOP with
the resulting FO.

[1] http://www.w3.org/TR/xslt#sorting

2014-10-20 9:02 GMT+02:00 Jean-Pierre Lamon g...@ngscan.com:
 Hi all,

 FOP 1.1 - XSLT 1.0

 With exactly the same code for my key indexing, I'm getting two different
 ordering sequences through XSLT or FOP:

 XSLT (MSXML) (Tried with XML2PDF, sort is also OK)

 A CACCIA DEL BOSONE DI HIGGS
 A DOS DE DROMADAIRE
 ABATON
 ABATON
 ABATON
 ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI
 AFFOLTER JEHANNE

 First white space after A is preserved

 FO

 ABATON
 ABATON
 ABATON
 A CACCIA DEL BOSONE DI HIGGS
 ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI
 A DOS DE DROMADAIRE

 First white space A after here is ignored

 Any idea?
 Regards
 JP



 -
 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: Different sort between FOP and XSL

2014-10-20 Thread Jean-Pierre Lamon
Thx for your reply. 
And if I would like to test Xerces with FOP? Possible?
With version 1.1 I can see xercesImpl-2.7.1.jar
A way to change that?
Cheers
JP


-Message d'origine-
De : Pascal Sancho [mailto:psancho@gmail.com] 
Envoyé : lundi 20 octobre 2014 11:17
À : fop-users@xmlgraphics.apache.org
Objet : Re: Different sort between FOP and XSL

Hi,

Sorting is only an XSLT feature, not a XSL-FO one.
Note that sort implementation may differ from XSLT engines, as said in
XSLT-REC (see [1]):
It is possible for two conforming XSLT processors not to sort exactly
the same.

Note again that FOP bundle comes with Xalan as XSLT engine for
convenience, but you can use your own, i.e. MSXML, and feed FOP with
the resulting FO.

[1] http://www.w3.org/TR/xslt#sorting

2014-10-20 9:02 GMT+02:00 Jean-Pierre Lamon g...@ngscan.com:
 Hi all,

 FOP 1.1 - XSLT 1.0

 With exactly the same code for my key indexing, I'm getting two different
 ordering sequences through XSLT or FOP:

 XSLT (MSXML) (Tried with XML2PDF, sort is also OK)

 A CACCIA DEL BOSONE DI HIGGS
 A DOS DE DROMADAIRE
 ABATON
 ABATON
 ABATON
 ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI
 AFFOLTER JEHANNE

 First white space after A is preserved

 FO

 ABATON
 ABATON
 ABATON
 A CACCIA DEL BOSONE DI HIGGS
 ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI
 A DOS DE DROMADAIRE

 First white space A after here is ignored

 Any idea?
 Regards
 JP



 -
 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




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



FOP alignment problem between two font type

2014-10-20 Thread Puja
http://apache-fop.1065347.n5.nabble.com/file/n41322/FOP_AlignmentProblem.png
Hi,

I am using FOP 1.0 version for converting reports in PDF. Problem I am
facing is alignment between two font type. I am using
Font-Family=Halvetica,Symbol

My xml requirement is to display greek omega sign as a unit for impedance.As
per my understanding as omega is not present in Halvetica, font used to
diplay omega is Symbol but alignment for both font type does not match. I
tried display-align, text-align, vertical-align but it doesn't work. Below
is section from my fo file, please suggest how to correct the alignment. I
have attached current alignment screen shot as well.

fo:table-cell number-columns-spanned=2 text-align=right
   fo:block
 fo:inline
  fo:inline747/fo:inline
/fo:inline
fo:inline space-start=5pxΩ/fo:inline
   /fo:block
/fo:table-cell





--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/FOP-alignment-problem-between-two-font-type-tp41322.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



Re: Different sort between FOP and XSL

2014-10-20 Thread Pascal Sancho
Xerces is an XML parser, not an XSLT engine.

If you are speaking about the latter, you can use your own, including
Xalan (2.7.1), MsXml, Saxon, LibXslt, etc.

the general process is:
 1. transform xml+xslt to get xsl-fo
using the chosen Xslt engine
 2. transform xsl-fo to get pdf (or whatever final format)
 using Fop

The way to proceed between the 2 stages depends on how you invoke FOP
(command line, embedded, webservice, etc.): pipe, stream, temp file,
etc.

2014-10-20 11:52 GMT+02:00 Jean-Pierre Lamon g...@ngscan.com:
 Thx for your reply.
 And if I would like to test Xerces with FOP? Possible?
 With version 1.1 I can see xercesImpl-2.7.1.jar
 A way to change that?
 Cheers
 JP


 -Message d'origine-
 De : Pascal Sancho [mailto:psancho@gmail.com]
 Envoyé : lundi 20 octobre 2014 11:17
 À : fop-users@xmlgraphics.apache.org
 Objet : Re: Different sort between FOP and XSL

 Hi,

 Sorting is only an XSLT feature, not a XSL-FO one.
 Note that sort implementation may differ from XSLT engines, as said in
 XSLT-REC (see [1]):
 It is possible for two conforming XSLT processors not to sort exactly
 the same.

 Note again that FOP bundle comes with Xalan as XSLT engine for
 convenience, but you can use your own, i.e. MSXML, and feed FOP with
 the resulting FO.

 [1] http://www.w3.org/TR/xslt#sorting

 2014-10-20 9:02 GMT+02:00 Jean-Pierre Lamon g...@ngscan.com:
 Hi all,

 FOP 1.1 - XSLT 1.0

 With exactly the same code for my key indexing, I'm getting two different
 ordering sequences through XSLT or FOP:

 XSLT (MSXML) (Tried with XML2PDF, sort is also OK)

 A CACCIA DEL BOSONE DI HIGGS
 A DOS DE DROMADAIRE
 ABATON
 ABATON
 ABATON
 ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI
 AFFOLTER JEHANNE

 First white space after A is preserved

 FO

 ABATON
 ABATON
 ABATON
 A CACCIA DEL BOSONE DI HIGGS
 ACQUISITION TRAITEMENT ET CONSOMMATION DES RESSOURCES ANI
 A DOS DE DROMADAIRE

 First white space A after here is ignored

 Any idea?
 Regards
 JP



 -
 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




 -
 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: Different sort between FOP and XSL

2014-10-20 Thread Jean-Pierre Lamon
Ok, thanks. You can see I'm a newbie :-)

Your solution is really great :-) My soft can produce .fo file without
problem. And now, it's MSXML that handles XSL parsing. And the result :

A caccia del bosone di Higgs | 17
A dos de dromadaire | 1
Abaton | 19
Affolter, Jehanne
Le site magdalénien de Monruz | 21

Thx again :-)
JP



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



Re: FOP alignment problem between two font type

2014-10-20 Thread Pascal Sancho
Font char box seem different, and baselines are not correctly aligned

As a workaround, you can use this:
fo:block747 fo:inline alignment-adjust=0.3emΩ/fo:inline/fo:block

2014-10-20 13:11 GMT+02:00 Puja pujaag...@gmail.com:
 http://apache-fop.1065347.n5.nabble.com/file/n41322/FOP_AlignmentProblem.png
 Hi,

 I am using FOP 1.0 version for converting reports in PDF. Problem I am
 facing is alignment between two font type. I am using
 Font-Family=Halvetica,Symbol

 My xml requirement is to display greek omega sign as a unit for impedance.As
 per my understanding as omega is not present in Halvetica, font used to
 diplay omega is Symbol but alignment for both font type does not match. I
 tried display-align, text-align, vertical-align but it doesn't work. Below
 is section from my fo file, please suggest how to correct the alignment. I
 have attached current alignment screen shot as well.

 fo:table-cell number-columns-spanned=2 text-align=right
fo:block
  fo:inline
   fo:inline747/fo:inline
 /fo:inline
 fo:inline space-start=5pxΩ/fo:inline
/fo:block
 /fo:table-cell





 --
 View this message in context: 
 http://apache-fop.1065347.n5.nabble.com/FOP-alignment-problem-between-two-font-type-tp41322.html
 Sent from the FOP - Users mailing list archive at Nabble.com.

 -
 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: FOP alignment problem between two font type

2014-10-20 Thread Glenn Adams
use a single font that has glyphs for both characters

On Mon, Oct 20, 2014 at 5:11 AM, Puja pujaag...@gmail.com wrote:

 
 http://apache-fop.1065347.n5.nabble.com/file/n41322/FOP_AlignmentProblem.png
 
 Hi,

 I am using FOP 1.0 version for converting reports in PDF. Problem I am
 facing is alignment between two font type. I am using
 Font-Family=Halvetica,Symbol

 My xml requirement is to display greek omega sign as a unit for
 impedance.As
 per my understanding as omega is not present in Halvetica, font used to
 diplay omega is Symbol but alignment for both font type does not match. I
 tried display-align, text-align, vertical-align but it doesn't work. Below
 is section from my fo file, please suggest how to correct the alignment. I
 have attached current alignment screen shot as well.

 fo:table-cell number-columns-spanned=2 text-align=right
fo:block
  fo:inline
   fo:inline747/fo:inline
 /fo:inline
 fo:inline space-start=5pxΩ/fo:inline
/fo:block
 /fo:table-cell





 --
 View this message in context:
 http://apache-fop.1065347.n5.nabble.com/FOP-alignment-problem-between-two-font-type-tp41322.html
 Sent from the FOP - Users mailing list archive at Nabble.com.

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