Hi Jean-Pierre,

On 22/05/2013 09:04, Jean-Pierre Lamon wrote:
Hi all,

It's the first time I'm posting here and I'm newbie in both XSL and FOP. So,
sorry for the horrors you'll find in my code :-)
I just would like to congratulate all the developers and contributors of
FOP, it's an amazing and so usefull product,

I just have a problem while grouping and sorting with FOP. The result is
different when using XSL or FOP. Ok with XSL, not with FOP.
The files are zipped on my server, so it would be nice if someone could help
me for this issue :

http://www.ngscan.com/downloads/fop/

The files are partial but usable I think.
It's a bibliography. Authors have many books and I want to sort by author
and book titles (node "indexsort").

Standard XSL result (stylesheet "toc.xsl")

Abegg, Regine
-- Die Äbtissinnenstuben im Schweizerischen Landesmuseum Zürich | 4
-- Die Kirchen von Altnau | 3
Alencastro, Camille de
-- Les expositions d'art à Neuchâtel | 1
-- Liste des expositions d'arts plastiques organisées par le Musée | 2
Carli-Lanfranconi, Annina de
-- Die Kirchen von Altnau | 3
Erni, Peter
-- Die Kirchen von Altnau | 3

FOP result (stylesheet  "BHS_2012_two_records.xsl" : Abegg is doubled)

This looks like a bug in your XSLT file to me. To check, trying running the XSLT process outside of FOP, i.e.

xalan -in bhs_2012_two_record.xml -xsl bhs_2012_two_record.xsl -out bhs_2012_two_record.fo

Alternatively if you use FOP from the command line, pass the -fo switch and name of XSL-FO File. If you have 2 entries in the XSL-FO then this confirms the bugs resides in the XSLT file.

For pure XSLT questions you will get a better response on the mulberry mailing list at [1]

Thanks,

Chris

[1] http://www.mulberrytech.com/xsl/xsl-list


Abegg, Regine
-- Die Äbtissinnenstuben im Schweizerischen Landesmuseum
Zürich : | 4
-- Die Kirchen von Altnau / | 3
Abegg, Regine
-- Die Äbtissinnenstuben im Schweizerischen Landesmuseum
Zürich : | 4
-- Die Kirchen von Altnau / | 3
Alencastro, Camille de
-- Les expositions d'art à Neuchâtel / | 1
-- Liste des expositions d'arts plastiques organisées par le
Musée : | 2
Carli-Lanfranconi, Annina de
-- Die Kirchen von Altnau / | 3
Erni, Peter
-- Die Kirchen von Altnau / | 3

On line 35 of "BHS_2012_two_records.xsl" :
<xsl:sort select="../indexsort"/>

if I put
<xsl:sort select="."/> the record is not doubled, but not sorted


Thank you a lot for your help
JPL



---------------------------------------------------------------------
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

Reply via email to