RE: Doubling result when sorting in FOP not in XSL
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) 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
Node value on a header page
Hi, In order to make a bibliographic list with FOP, my XML is built as this : collection level_1 CallNumber=o Value=@Künste, Unterhaltung und Sport / Arts, loisirs et sport / Arti, attività ricreative e sport / Arts, sports, games and entertainment/ level_1 CallNumber=o.a.1.03 Value=Kunstmuseen, Kunstsammlungen / Musées des beaux-arts, collections d'art / Musei di belle arti / Art museums and collections record bibliographic fields (Author, title etc ) . /record level_1 CallNumber=o.a.1.10 Value=Angewandte Kunst / Arts décoratifs / Arti decorative / Decorative arts . /level_1 /collection The goal is to group author/titles under level_1. If there is a @ in the beginning of the level_1/@value, even if there is no record under it, Im displaying the @Value. What I want to do, is to display dynamically the current parent value starting-with a @ on the header region of a new page. I want this in each page : header region (=underline) and body region of a new page o Künste, Unterhaltung und Sport / Arts, loisirs et sport / Arti, attività ricreative e sport / Arts, sports, games and entertainmentpage 2/120 o.a.1.10 Angewandte Kunst / Arts décoratifs / Arti decorative / Decorative arts my records under this level here XSL : xsl:for-each select=collection/level_1 xsl:variable name=hdr select=normalize-space(substring(@Value,1,1))/ xsl:choose xsl:when test=$hdr='@' xsl:value-of select=substring(@Value,2)/ /xsl:when xsl:choose xsl:choose xsl:when test=record xsl:value-of select=concat('- ',@Value)/ xsl:for-each select=record Records here xsl:for-each xsl:when /xsl:choose Ive tried with parent.. ancestror.. etc no success. Is this possible with FOP? Thanks JP
Re: Node value on a header page
This is more of a XSLT question then FOP. In xslt 1.0 you can use the the Muenchian Method http://www.jenitennison.com/xslt/grouping/muenchian.html http://www.jenitennison.com/xslt/grouping/muenchian.html and in xslt 2.0 you can use xsl:for-each-group -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Node-value-on-a-header-page-tp38557p38558.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
PDF to FO conversion.
Hi, Can I generate FO file from PDF too using FOP? -- Ashish Sanodia ? Project Engineer C-DAC, GIST, Pune Tel :020-25503427 --- This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ---
RE: PDF to FO conversion.
No, that is impossible. Van: Ashish Sanodia [mailto:sash...@cdac.in] Verzonden: woensdag 22 mei 2013 14:13 Aan: fop-users@xmlgraphics.apache.org Onderwerp: PDF to FO conversion. Hi, Can I generate FO file from PDF too using FOP?
RE: PDF to FO conversion.
Hi Ashish, There isn't a utility to do that in FOP and I'm unaware of any other tool anywhere which does that either. The closest would be to convert the PDF to SVG using a different tool (like Adobe Illustrator) and create a new FO and reference that. That is not the answer I think you're after though, and so ultimately I think the answer is no. Regards, Robert Meyer Date: Wed, 22 May 2013 17:43:20 +0530 From: sash...@cdac.in To: fop-users@xmlgraphics.apache.org Subject: PDF to FO conversion. Hi, Can I generate FO file from PDF too using FOP? -- Ashish Sanodia ☕ Project Engineer C-DAC, GIST, Pune Tel :020-25503427 --- This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ---
Re: PDF to FO conversion.
But it's possible to place a PDF fox:external-document content-type=pdf src=mypdffile.pdf/ http://xmlgraphics.apache.org/fop/0.95/extensions.html#external-document BR Maruan Sahyoun Am 22.05.2013 um 14:20 schrieb Arjan Bokx arjan.b...@akb-ls.nl: No, that is impossible. Van: Ashish Sanodia [mailto:sash...@cdac.in] Verzonden: woensdag 22 mei 2013 14:13 Aan: fop-users@xmlgraphics.apache.org Onderwerp: PDF to FO conversion. Hi, Can I generate FO file from PDF too using FOP?
EPS file is repeated in every page even though optimize-resources=true
Hi, I have a 4MB encapsulated postscript file that needs to be set as the background of every page. The XSL:FO for testing with FOP 1.0 is [1]. The problem is that the contents of the EPS file are repeated in every page, even though fop.xconf.xml has: renderer mime=application/postscript optimize-resourcestrue/optimize-resources /renderer Changing my.eps to my.jpg which is a JPEG file, works as expected. By looking in the code, it seems that there is no supported ImageFlavor for form creation, in other words org.apache.fop.render.ps.PSImageUtils#isImageInlined always returns true for EPS images. Anybody knows if this is just not implemented or if this is a limitation of postscript ? If this is not a postscript limitation, any example of how this could be done ? I already looked in the short EPSF_Spec [2] and some suggestions like [3] but could not create a valid postscript file. Thank you, Alexios Giotis [1] ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simpleA4 page-height=29.7cm page-width=21cm margin-top=0cm margin-bottom=0cm margin-left=0cm margin-right=0cm fo:region-body background-repeat=no-repeat background-image=file:/Users/alex//tdesk/my.eps / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simpleA4 fo:flow flow-name=xsl-region-body fo:block break-after=page margin-top=9cmPage 1/fo:block fo:block break-after=page margin-top=9cmPage 2/fo:block /fo:flow /fo:page-sequence /fo:root [2] http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf [3] http://stackoverflow.com/questions/9820646/overlay-two-postscript-files-command-line-approach - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: Doubling result when sorting in FOP not in XSL
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