Re: FOP 0.20.3 - master reference issue
You're right, fo:page-sequence-master master-name="basic"is just named and later on referenced by fo:page-sequencemaster-reference="basic" will do the trick thanks a lot markus
FOP 0.20.3 - master reference issue
Hi all I've updated my version of FOP to 0.20.3 (from Fop 0.20.1) and immediately got an issue with an existing .fo which was working nicely for a while there. The error I'm getting when kicking FOP into gear is: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: 'master-reference' for 'fo:page-sequence' matches no 'simple-page-master' or 'page-sequence-master' I take this to mean that either a reference name in my .fo is wrong or missing but the relevant bit of the .fo looks like this: ?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=main margin-right=1cm margin-left=1cm margin-bottom=1.5cm margin-top=1cm page-width=21cm page-height=29.7cm fo:region-before extent=3cm/ fo:region-after extent=2.5cm/ fo:region-body margin-top=4cm margin-bottom=3.5cm margin-left=0cm margin-right=0cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-name=main fo:static-content flow-name=xsl-region-before fo:table Am I missing something obvious here or has FOP changed the way it works in some subtle way? Thanks Josh ZYPE - Graphical Interface Design Phone: 03 963 3735 Mobile: 021 400 472 Web: www.zype.co.nz
Re: FOP 0.20.3 - master reference issue
Hi, can somebody provide the structure for a simple alternating page layout (odd/even)? My previous working example broke with 0.20.3, could be halfway fixed, but doesn't alternate anymore, because I am only able to reference simple-page-master's in page-sequence, and not page-sequence-master's, which do the alternating stuff, anymore. markus -Ursprüngliche Nachricht- Von: Peter B. West [EMAIL PROTECTED] An: [EMAIL PROTECTED] [EMAIL PROTECTED] Datum: Mittwoch, 24. April 2002 06:23 Betreff: Re: FOP 0.20.3 - master reference issue Josh, There was a change in the spec. Page-masters (like simple-page-master) have a master-name. Things that refer to page-masters (like page-sequence) now have a master-reference instead of a master-name. You will have to change your fo:s and whatever is generating them to conform. Peter Josh wrote: [ERROR]: 'master-reference' for 'fo:page-sequence' matches no 'simple-page-master' or 'page-sequence-master'
FOP 0.20.3 - master reference issue
Hi, example given, should result in an alternating odd/even layout by referencing the page-sequence-master with the master-reference=basic but fo:page-sequence master-reference=basic will show: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: 'master-reference' for 'fo:page-sequence'matches no 'simple-page-master ' or 'page-sequence-master' ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0 xsl:template match=/ fo:root fo:layout-master-set fo:simple-page-master master-name=even page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=3cmmargin-right=2cm fo:region-body margin-top=1cm margin-bottom=2cm/ fo:region-before extent=1cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master fo:simple-page-master master-name=odd page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=2cmmargin-right=3cm fo:region-body margin-top=1cm margin-bottom=2cm/ fo:region-before extent=1cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master fo:page-sequence-master master-reference=basic fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-name=even odd-or-even=even/ fo:conditional-page-master-reference master-name=odd odd-or-even=odd/ fo:conditional-page-master-reference master-name=odd/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set xsl:apply-templates select=java2cert/ !-- my XML-root Element -- /fo:root /xsl:template xsl:template match=java2cert fo:page-sequence initial-page-number=1 master-reference=even !-- I'd like to reference basic here, to achieve alternating page-masters in 0.20.2 OK, probably because I didn't need to set 'master-reference', [ERROR] happens if you change to: master-reference=basic -- fo:flow flow-name=xsl-region-body xsl:apply-templates select=chapter/ /fo:flow /fo:page-sequence /xsl:template Thanks for your attention markus
Re: FOP 0.20.3 - master reference issue
Markus, Could it be that you haven't completely fixed the master-name/master-reference issues? simple-page-master master-name page-sequence-master master-name simple-page-master-reference master-reference repeatable-page-master-reference master-reference conditional-page-master-reference master-reference Peter Markus Wiese wrote: Hi, can somebody provide the structure for a simple alternating page layout (odd/even)? My previous working example broke with 0.20.3, could be halfway fixed, but doesn't alternate anymore, because I am only able to reference simple-page-master's in page-sequence, and not page-sequence-master's, which do the alternating stuff, anymore.