Re: page-number-citation problem

2004-10-27 Thread J.Pietschmann
Randy Ouellette wrote:
We are having an issue with using the page-number-citation for outputting
the page-number for those pages that are inside a page-sequence when the
number is restarted (initial-number=1). We are trying to output a
page-number in a TOC but cannot get a value.
Please provide:
- FOP release information
- Exact problem description (expected result vs. actual result)
- A reasonably small test case
J.Pietschmann


page-number-citation problem

2004-10-26 Thread Randy Ouellette
We are having an issue with using the page-number-citation for outputting
the page-number for those pages that are inside a page-sequence when the
number is restarted (initial-number=1). We are trying to output a
page-number in a TOC but cannot get a value.

Is there going to be a fix for this type of issue in the future? Is there
anything we can do in the source code to enable this?

Please let us know, we are working on a project for Department of Defense
and need this information ASAP.

Regards,

_
Randy Ouellette
DynaMark Solutions Inc.
Ph.: (403) 730-0808
Fax: (403) 730-0832
web: www.dynamarksolutions.com
mail: [EMAIL PROTECTED]
_



Re: Interaction between force-page-count and initial-page-number

2004-02-09 Thread Peter B. West
Chris,

Comments below.

Chris Bowditch wrote:
Peter B. West wrote:

snip/

The Rec says of force-page-number:auto, 'If there is no next 
page-sequence or if the value of its initial-page-number is auto do 
not force any page.'  Should that read, '...the value of its 
initial-page-number is auto, auto-even or auto-odd...'?  If not, 
some questions of behaviour arise.


Hi Peter - I dont think the spec needs to say auto-even or auto-odd 
here. Unless I'm missing something it seems clear to me that if 
initial-page-number=auto-odd and the force-page-number=auto on the 
previous page-sequence then a page must be forced when the first page 
sequence ends on an odd page.
My point is that the spec is *not* clear on this.

1st p-s: What's your 1st number (my last is 11)?

The 2nd calculates that it's first number must be 13, based on 
initial-page-number:auto-odd.

2nd p-s: 13

The 1st p-s now forces a blank page, numbered 12.  If it were to query 
again, based on the new last page number, the dialogue would go


I dont see why it needs to re-query just because the last page number 
changed. After all the last page number changed as a result of 
communication between ps1 and ps2, so why go round again?

My purpose in setting this scenario out is to demonstrate that, in these 
circumstances, a requery is not necessary.  In general, though, if you 
have a mutual dependency, and the conditions on one side of the 
dependency change, you're up for another round.  In the circumstances 
outlined, the analysis indicates that no recursion is necessary.

However, there is nothing in the spec to indicate that a page sequence 
with force-page-number:auto should include its current last generated 
number in a query.  It simply indicates that such a page-sequence should 
find out from the following page sequence whether its first number is 
odd, even or auto, in order to determine its own last page number. 
Unfortunately, the following page sequence may not be able to answer 
that question without first finding out what the last page number of the 
preceding page-sequence is.

The scenario I outlined goes beyond what the spec states in order to 
resolve the deadlock.  If this process is intended by the editors, they 
need to spell it out.

1st p-s: 1st number (12)?
2nd p-s: 13
and the extra dialogue would be unnecessary.  Is this the intention? 


I agree this extra dialog is unnecessary but I couldnt tell from the 
quotes you made why you think the spec implies that it is necessary.
Peter
--
Peter B. West http://www.powerup.com.au/~pbwest/resume.html


Interaction between force-page-count and initial-page-number

2004-02-08 Thread Peter B. West
The editors,

I am seeking clarification of the relationship between the 
force-page-number and initial-page-number properties in certain 
circumstances: specifically, when the value of force-page-number is 
auto and the value of initial-page-number on a following page-sequence 
is either auto-even or auto-odd.  Apart from the descriptions of the 
properties, I found no other discussion about the interaction of these 
properties.

The Rec says of force-page-number:auto, 'If there is no next 
page-sequence or if the value of its initial-page-number is auto do 
not force any page.'  Should that read, '...the value of its 
initial-page-number is auto, auto-even or auto-odd...'?  If not, 
some questions of behaviour arise.

Say, for example, the last generated page of a force-page-number:auto 
page-sequence has an odd number, and the following page-sequence has an 
initial-page-number value of auto-odd.  The page-sequence queries the 
following page-sequence for first first page number.  The second 
page-sequence, in turn, queries the first page sequence for its last 
page number.  Who goes first?

Because the 1st page sequence is the only source of information on 
actual generated page numbers, the following scenario seems reasonable. 
 The 1st sequence queries the 2nd, passing its current generated last 
page number.  The 2nd then uses this number to generate a response. 
Let's say the generated last number is 11.

1st p-s: What's your 1st number (my last is 11)?

The 2nd calculates that it's first number must be 13, based on 
initial-page-number:auto-odd.

2nd p-s: 13

The 1st p-s now forces a blank page, numbered 12.  If it were to query 
again, based on the new last page number, the dialogue would go

1st p-s: 1st number (12)?
2nd p-s: 13
and the extra dialogue would be unnecessary.  Is this the intention? 
This approach avoids holes in the page numbering, but I note that the 
combination of force-page-count:odd and a following 
initial-page-number:auto-odd will force a such a hole.

Whatever the case, it would be worthwhile adding a clarification to the Rec.

Peter
--
Peter B. West http://www.powerup.com.au/~pbwest/resume.html


PAGE NUMBER HELP IN PDF

2003-03-20 Thread Shyam Sundar
Title: PAGE NUMBER HELP IN PDF





hi,


i need some help regarding page numbers in pdf output.


i have a pdf which spans for 10 pages. i am able to print page numbers for every page.


but the requirement is the ouptut should be like 1of 10 for the first page,2 of 10 for the second page etc.


can anyone help me.ASAP


CHEERS
shyam






Re: PAGE NUMBER HELP IN PDF

2003-03-20 Thread J.Pietschmann
Shyam Sundar wrote:
but the requirement is the ouptut should be like 1of 10 for the first page,2
of 10 for the second page etc.
See
 http://xml.apache.org/fop/faq.html#fo_total_pages
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


RE: PAGE NUMBER HELP IN PDF

2003-03-20 Thread Shyam Sundar
Title: RE: PAGE NUMBER HELP IN PDF





thank you...
but i have multiple documents and it is generating errors .


cheers
shyam


-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 21, 2003 11:18 AM
To: [EMAIL PROTECTED]
Subject: Re: PAGE NUMBER HELP IN PDF



Shyam Sundar wrote:
 but the requirement is the ouptut should be like 1of 10 for the first page,2
 of 10 for the second page etc.


See
 http://xml.apache.org/fop/faq.html#fo_total_pages


J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]





DO NOT REPLY [Bug 1130] - Alignment of page-number-citation inside a ToC

2003-03-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1130.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1130

Alignment of page-number-citation inside a ToC

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-03-02 16:56 ---
Fixed for 0.20.5rc3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



RE: Can't bind page number into a variable

2003-02-18 Thread Volker [EMAIL PROTECTED]
Hi Simon,

I'm afraid but there is no way to know on which page you are.
Is there a reason why you can't put the page number into a static area?
If you can then the following snippets might help:


1. Define your pages (left / right)

fo:simple-page-master master-name=right_page
page-height={$MEDIA_PAGE_HEIGHT}cm page-width={$MEDIA_PAGE_WIDTH}cm
margin-top={$MEDIA_MARGIN_TOP}cm margin-bottom={$MEDIA_MARGIN_BOTTOM}cm
margin-left={$MEDIA_MARGIN_LEFT}cm margin-right={$MEDIA_MARGIN_RIGHT}cm
fo:region-body margin-top={$SUBSIDIARIES_HEADER_EXTENT}cm
margin-bottom={$SUBSIDIARIES_FOOTER_EXTENT}cm
margin-left={$THUMB_AREA_EXTENT}cm margin-right={$THUMB_AREA_EXTENT}cm
xsl:call-template name=makeBackgroundImage/
/fo:region-body
fo:region-before 
extent={$SUBSIDIARIES_HEADER_EXTENT}cm/
fo:region-after region-name=footer-even
extent={$SUBSIDIARIES_FOOTER_EXTENT}cm/
fo:region-start extent={$THUMB_AREA_EXTENT}cm/
fo:region-end extent={$THUMB_AREA_EXTENT}cm/
/fo:simple-page-master

fo:simple-page-master master-name=left_page
page-height={$MEDIA_PAGE_HEIGHT}cm page-width={$MEDIA_PAGE_WIDTH}cm
margin-top={$MEDIA_MARGIN_TOP}cm margin-bottom={$MEDIA_MARGIN_BOTTOM}cm
margin-left={$MEDIA_MARGIN_LEFT}cm margin-right={$MEDIA_MARGIN_RIGHT}cm
fo:region-body 
margin-top={$SUBSIDIARIES_HEADER_EXTENT}cm
margin-bottom={$SUBSIDIARIES_FOOTER_EXTENT}cm
margin-left={$THUMB_AREA_EXTENT}cm margin-right={$THUMB_AREA_EXTENT}cm
xsl:call-template name=makeBackgroundImage/
/fo:region-body
fo:region-before 
extent={$SUBSIDIARIES_HEADER_EXTENT}cm/
fo:region-after region-name=footer-odd
extent={$SUBSIDIARIES_FOOTER_EXTENT}cm/
fo:region-start extent={$THUMB_AREA_EXTENT}cm/
fo:region-end extent={$THUMB_AREA_EXTENT}cm/
/fo:simple-page-master



2. Assign them to odd / even page numbers

fo:page-sequence-master master-name=subsidiaries
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference master-reference=right_page
odd-or-even=odd/
fo:conditional-page-master-reference master-reference=left_page
odd-or-even=even//fo:repeatable-page-master-alternatives
/fo:page-sequence-master


3. Use the page sequence and add layout specific to even / odd pages

fo:page-sequence master-reference=subsidiaries
fo:static-content flow-name=footer-even
xsl:call-template name=makeNotesFootnote/
xsl:call-template name=makePageNumberFooterEven/
/fo:static-content
fo:static-content flow-name=footer-odd
xsl:call-template name=makeNotesFootnote/
xsl:call-template name=makePageNumberFooterOdd/
/fo:static-content
fo:flow
...
/fo:flow
/fo:page-sequence


BTW: Please use fop-users list for questions like this in future.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 9:51 PM
To: [EMAIL PROTECTED]
Subject: Can't bind page number into a variable


Hi,

I would like to put specific attributes on odd or even pages, so I began
by looking for a way to check the context pages but I did'nt find
anything.

So I wanted to bind the fo:page-number / into a variable in order to
make some test on it when I want to add specific parameters to my tags.

xsl:variable name=page_numberfo:page-number //xsl:variable
xsl:if test=($page_number mod 2)=1
  xsl:attribute name=text-alignstart/xsl:attribute
/xsl:if
xsl:if test=($page_number mod 2)=0
  xsl:attribute name=text-alignend/xsl:attribute
/xsl:if

But it looks like being impossible to bind the fo:page-number / into a
variable or param (I tried to write my variable in a block but it looks
like being setted to  by the fo:page-number tag).

Is here a reason for my variable to be null ? And is there a way to detect
the context where I am currently in while writing in a non-static content
?

I also tried to make a template with a page_number param but it doesn't
work either...

Here are some examples of my pdf outputs :

http://www.tatouage.fr/temp/ap_skin_example.pdf
(here I want to align my titles at the start or the end of the block
depending of the odd or even condition, I am in a non-static context)

http://www.tatouage.fr/temp/cd_skin_example.pdf
(It's the same with this skin but it will be easier for me because every
objects have statical

Can't bind page number into a variable

2003-02-17 Thread s-oualid
Hi,

I would like to put specific attributes on odd or even pages, so I began 
by looking for a way to check the context pages but I did'nt find 
anything. 

So I wanted to bind the fo:page-number / into a variable in order to 
make some test on it when I want to add specific parameters to my tags.

xsl:variable name=page_numberfo:page-number //xsl:variable
xsl:if test=($page_number mod 2)=1
  xsl:attribute name=text-alignstart/xsl:attribute
/xsl:if
xsl:if test=($page_number mod 2)=0
  xsl:attribute name=text-alignend/xsl:attribute
/xsl:if

But it looks like being impossible to bind the fo:page-number / into a 
variable or param (I tried to write my variable in a block but it looks 
like being setted to  by the fo:page-number tag). 

Is here a reason for my variable to be null ? And is there a way to detect 
the context where I am currently in while writing in a non-static content 
?

I also tried to make a template with a page_number param but it doesn't 
work either...

Here are some examples of my pdf outputs :

http://www.tatouage.fr/temp/ap_skin_example.pdf
(here I want to align my titles at the start or the end of the block 
depending of the odd or even condition, I am in a non-static context)

http://www.tatouage.fr/temp/cd_skin_example.pdf
(It's the same with this skin but it will be easier for me because every 
objects have statical position on the page = I have one odd and one even 
page for each XML FICHE tag, so I'll be able to manage the whole page 
breaking in XSLT)

Sorry for disturbing you developpers with my little problem, but it makes 
me so nervous ... :/

Thanks for your work on this API.

Simon OUALID


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Possible bug in initial-page-number in fop 0.20.5.rc

2003-01-23 Thread Henrik Holle
BUG in initial-page-number handling?


This xsl:fo document renders 3 pages

?xml version=1.0 encoding=iso-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
!-- layout for the first page --
fo:simple-page-master master-name=testMaster
page-height=29.6cm page-width=21cm margin-top=0.5cm
margin-bottom=0.5cm margin-left=2cm margin-right=2cm
fo:region-body margin-top=0.5cm/
fo:region-before extent=2cm/
fo:region-after extent=0cm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=testMaster 
fo:flow flow-name=xsl-region-body
fo:blocktest/fo:block
/fo:flow
/fo:page-sequence
!-- without initial-page-number --
fo:page-sequence master-reference=testMaster initial-page-number=1
fo:flow flow-name=xsl-region-body
fo:blocktest/fo:block
/fo:flow
/fo:page-sequence
/fo:root


This document is correct, only two pages

?xml version=1.0 encoding=iso-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
!-- layout for the first page --
fo:simple-page-master master-name=testMaster
page-height=29.6cm page-width=21cm margin-top=0.5cm
margin-bottom=0.5cm margin-left=2cm margin-right=2cm
fo:region-body margin-top=0.5cm/
fo:region-before extent=2cm/
fo:region-after extent=0cm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=testMaster 
fo:flow flow-name=xsl-region-body
fo:blocktest/fo:block
/fo:flow
/fo:page-sequence
!-- without initial-page-number --
fo:page-sequence master-reference=testMaster 
fo:flow flow-name=xsl-region-body
fo:blocktest/fo:block
/fo:flow
/fo:page-sequence
/fo:root


Any ideas?




henrik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Possible bug in initial-page-number in fop 0.20.5.rc

2003-01-23 Thread Chris Bowditch
This isnt a bug. Try setting the attribute force-page-count=no-force on 
the first page-sequence.

3 pages are rendered because default value for force-page-count is auto, 
which basically means that because you set the initial page count of the 2nd 
page sequence to an odd number (1 in your example), FOP needs to insert an 
EVEN page at the end of the 2nd page sequence.

From: Henrik Holle [EMAIL PROTECTED]

BUG in initial-page-number handling?


This xsl:fo document renders 3 pages

?xml version=1.0 encoding=iso-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
	fo:layout-master-set
		!-- layout for the first page --
		fo:simple-page-master master-name=testMaster
page-height=29.6cm page-width=21cm margin-top=0.5cm
margin-bottom=0.5cm margin-left=2cm margin-right=2cm
			fo:region-body margin-top=0.5cm/
			fo:region-before extent=2cm/
			fo:region-after extent=0cm/
		/fo:simple-page-master
	/fo:layout-master-set
	fo:page-sequence master-reference=testMaster 
		fo:flow flow-name=xsl-region-body
			fo:blocktest/fo:block
		/fo:flow
	/fo:page-sequence
!-- without initial-page-number --
fo:page-sequence master-reference=testMaster initial-page-number=1
		fo:flow flow-name=xsl-region-body
			fo:blocktest/fo:block
		/fo:flow
	/fo:page-sequence
/fo:root


This document is correct, only two pages

?xml version=1.0 encoding=iso-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
	fo:layout-master-set
		!-- layout for the first page --
		fo:simple-page-master master-name=testMaster
page-height=29.6cm page-width=21cm margin-top=0.5cm
margin-bottom=0.5cm margin-left=2cm margin-right=2cm
			fo:region-body margin-top=0.5cm/
			fo:region-before extent=2cm/
			fo:region-after extent=0cm/
		/fo:simple-page-master
	/fo:layout-master-set
	fo:page-sequence master-reference=testMaster 
		fo:flow flow-name=xsl-region-body
			fo:blocktest/fo:block
		/fo:flow
	/fo:page-sequence
!-- without initial-page-number --
	fo:page-sequence master-reference=testMaster 
		fo:flow flow-name=xsl-region-body
			fo:blocktest/fo:block
		/fo:flow
	/fo:page-sequence
/fo:root


Any ideas?




henrik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



_
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 15366] - 'initial-page-number' generates blank page

2002-12-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15366.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15366

'initial-page-number' generates blank page

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED



--- Additional Comments From [EMAIL PROTECTED]  2002-12-18 11:36 ---
Thank you very much for explanation. I wouldn't even bothered you if behaviour
of previous versions would be the same. It's good that you are getting closer to
the specification.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 15366] - 'initial-page-number' generates blank page

2002-12-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15366.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15366

'initial-page-number' generates blank page





--- Additional Comments From [EMAIL PROTECTED]  2002-12-17 14:21 ---
Created an attachment (id=4205)
FO document with initial-page-number

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 15366] - 'initial-page-number' generates blank page

2002-12-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15366.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15366

'initial-page-number' generates blank page





--- Additional Comments From [EMAIL PROTECTED]  2002-12-15 10:26 ---
Provide an example proving the problem, please. (Add it as attachment).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 15366] New: - 'initial-page-number' generates blank page

2002-12-13 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15366.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15366

'initial-page-number' generates blank page

   Summary: 'initial-page-number' generates blank page
   Product: Fop
   Version: 0.20.5
  Platform: PC
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: pdf renderer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I have a document of two (or more) pages. What I'm trying to do, is to start
page numbering from the second page (i.e. the second page in document is
designated as '1').
To achieve this, I explicitly set 'initial-page-number' to 1 for the second
'page-sequence'.
When run, PDF renderer inserts one unexpected blank page between the very first
page of the document and the second one.
If I remove 'initial-page-number' property from the second page, document is
rendered properly (ie. without any blank page), however page number of the
second page is 2 - which is not what I need.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




page-number-citation

2002-07-02 Thread FOP project-Vienna


Hi there!

I am currently working on an online-editing system for newspapers using FOP.
Therefore a Xml-File is generated which consists of serveral chapters
containing several 
chapter-articles.  
I want to create a table of content for the whole newspaper containing the
headlines of each 
chapter_article as well as the adjacent page-number.

Actually I want this system to be independent of the input so I don`t know
how many articles 
the newspaper is going to contain.  Therefore I automatically create
id-attributes for each new 
headline using xsl:generate-id.. but the problem is I cannot refer to this
generated ids!!  The 
command fo:page-number-citation contains ref-id= but I don`t know how to
tell FOP that it 
should use the internal created id-attributes here!  I didn`t find any
documentation about this 
kind of problem.  Maybe you could help me?

Please!
Thanks in advance,
Marion from Vienna

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: page-number-citation

2002-07-02 Thread Cyril Rognon

Hi,

(Remark : This is a XSL issue, nothing particular with XSL FO nor FOP. :)

you can simply use some other template (usually they use some toc named 
template) to generate your table of content using the same nodes. This wat, 
you can use the same xsl:generate-id function to generate the same internal 
created id here.

If you need more explanation, here is some sample code in the antennahouse 
fo tutorial here (http://www.antennahouse.com/XSLsample/XSLsample.htm) even 
if it is more complicated than your basic need.

Cyril

At 14:11 02/07/2002 +0200, you wrote:
Therefore I automatically create
id-attributes for each new
headline using xsl:generate-id.. but the problem is I cannot refer to this
generated ids!!  The
command fo:page-number-citation contains ref-id= but I don`t know how to
tell FOP that it
should use the internal created id-attributes here!  I didn`t find any
documentation about this
kind of problem.  Maybe you could help me?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: page-number-citation

2002-07-02 Thread FOP project-Vienna

Thanx for your answer but I´ve already studied these examples.. I tried it
again and it simply doesn`t work..
what I want to know is how can I refer to the genrated page-numbers in
fo:page-number-citation ref-id=/???

I have tried it like described by Antenna House:

the headline of each article is placed in a fo:block id={generate-id()}

in the table of content I used 
xsl:for-each select=//headline
...
fo:page-number-citation ref-id={generate-id()}/
...

like Antenna House
but the function in ref-id generates completely NEW ids which surely don`t
match with the ones generated in fo:block..
Is there any possibility to write something like fo:page-number-citation
ref-id=@id/ ?? Any possibility to write an xsl-command in the ref-id, like
fo:page-number-citation ref-id=xsl:value-of select=...// 
I know that it can`t work that way but maybe you understand my problem and
know something similar I could use...

Thank you a lot :)
Marion
 Hi,
 
 (Remark : This is a XSL issue, nothing particular with XSL FO nor FOP. :)
 
 you can simply use some other template (usually they use some toc named 
 template) to generate your table of content using the same nodes. This
 wat, 
 you can use the same xsl:generate-id function to generate the same
 internal 
 created id here.
 
 If you need more explanation, here is some sample code in the antennahouse
 
 fo tutorial here (http://www.antennahouse.com/XSLsample/XSLsample.htm)
 even 
 if it is more complicated than your basic need.
 
 Cyril
 
 At 14:11 02/07/2002 +0200, you wrote:
 Therefore I automatically create
 id-attributes for each new
 headline using xsl:generate-id.. but the problem is I cannot refer to
 this
 generated ids!!  The
 command fo:page-number-citation contains ref-id= but I don`t know how
 to
 tell FOP that it
 should use the internal created id-attributes here!  I didn`t find any
 documentation about this
 kind of problem.  Maybe you could help me?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: page-number-citation

2002-07-02 Thread Cyril Rognon

Again, I must ell you that your issue is XSLT related, not FO nor FOP.

You must be sure that the current context node is the same when you 
generate the fo:block id={generate-id()}
and the fo:page-number-citation ref-id={generate-id()}/ !

different ids mean different nodes used by the generate-id function.

Be sure you have the same nodes means that if you use xsl:for-each 
select=//headline to gather your nodeset, you have to use some equal 
stuff to parse your headlines to generate your block with ids . It has to 
be the exat same nodes.

Cyril


At 17:34 02/07/2002 +0200, you wrote:
I have tried it like described by Antenna House:

the headline of each article is placed in a fo:block id={generate-id()}

in the table of content I used
xsl:for-each select=//headline
...
fo:page-number-citation ref-id={generate-id()}/
...

like Antenna House
but the function in ref-id generates completely NEW ids which surely don`t
match with the ones generated in fo:block..


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




page-number-citation in combination with force-page-count

2002-05-14 Thread Arnd Beißner

Question:

In my current print jobs, I have two page sequences where the second 
sequence has its own numbering
scheme (reset to 1). The PDF I generate need be printed in duplex mode. My 
first page sequence
typically has two pages, but there's sometimes a document where the first 
sequence is three pages
long. Since I need to have an even number of pages in the first sequence 
(otherwise duplex printing
is broken, in insert a force-page-count=end-on-even in the first 
sequence.

Works fine. But: I use page-number-citations in the footer to get page x 
of y style page counts.
To get the y, I append an empty block with an id property to the flow 
that I reference with the
page-number-citation.

Because that empty block happens to be formatted on page 3 (4 is empty in 
this case), I get
a footer page 4 of 3 on page 4.

Of course, this is logical, I think. Now the question is: how can that 
kind of problem be solved
with :FO (preferably with FOP, too.. 8-) )

I need to reference a formatting object that is on the empty page. This 
I cannot do, since I
don't have a formatting object on the page - besides the static-content 
footer which doesn't
help, because it's repeated -.

Well, ok, I might be able to do something with the blank-or-not-blank 
property, but then the
blank page isn't counted.

I don't see how I could use a page-position=last property for this, 
either.

Did I stumble upon a missing feature in XSL:FO, or am I just too tired?
Any ideas?

Thanks in advance,

Arnd Beissner
--
Cappelino Informationstechnologie GmbH
Arnd Beißner
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Mobile: +49-173-3016917


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: page-number-citation in combination with force-page-count

2002-05-14 Thread J.Pietschmann

Arnd Beißner wrote:
 I don't see how I could use a page-position=last property for this, 
 either.
This could work if it were implemented in FOP.

 Did I stumble upon a missing feature in XSL:FO,
Yes. There is no feature to really *count* pages, you can
only cite page numbers.

Postprocessing with iText or implementing an extension
element might help.

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: page-number-citation in combination with force-page-count

2002-05-14 Thread Arnd Beißner

J.Pietschmann wrote:

 Arnd Beißner wrote:
  I don't see how I could use a page-position=last property for this, 
  either.
 This could work if it were implemented in FOP.

  Did I stumble upon a missing feature in XSL:FO,
 Yes. There is no feature to really *count* pages, you can
 only cite page numbers.

 Postprocessing with iText or implementing an extension
 element might help.

Thanks, that'd be an extension element for me. If I do it,
I'll report my findings.

Thanks again,

Arnd Beissner
--
Cappelino Informationstechnologie GmbH
Arnd Beißner
Bahnhofstr. 3, 71063 Sindelfingen, Germany
Email: [EMAIL PROTECTED]
Phone: +49-7031-463458
Mobile: +49-173-3016917


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 2567] - initial-page-number=auto does not work properly...

2002-05-06 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2567.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2567

initial-page-number=auto does not work properly...

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 1130] - Alignment of page-number-citation inside a ToC

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1130.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1130

Alignment of page-number-citation inside a ToC

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Priority||High



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 11:38 ---
This is the prototype of the end aligned forward reference page number
citation bug.
FOP reserves some space for forward reference page number citations, which
is filled on being resolved. The area actually needed by te page number may
be quite different, therefore the misalignments.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 1130] - Alignment of page-number-citation inside a ToC

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1130.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1130

Alignment of page-number-citation inside a ToC

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 11:38 ---
*** Bug 5805 has been marked as a duplicate of this bug. ***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 5984] - text-align=end does not work correctly when using page-number-citation

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5984.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5984

text-align=end does not work correctly when using page-number-citation

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 11:39 ---


*** This bug has been marked as a duplicate of 1130 ***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 1130] - Alignment of page-number-citation inside a ToC

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1130.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1130

Alignment of page-number-citation inside a ToC

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 11:39 ---
*** Bug 5984 has been marked as a duplicate of this bug. ***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




DO NOT REPLY [Bug 2567] - initial-page-number=auto does not work properly...

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2567.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2567

initial-page-number=auto does not work properly...

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 16:10 ---
This has been fixed in 0.20.3

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




AW: page-number

2002-04-11 Thread Henrik Holle

i tried it this way:

fo:flow flow-name=xsl-region-body
 xsl:apply-templates select=data/
 fo:block id=lastpage/fo:block  !-- IMPORTANT: THIS MUST BE THE
LAST THING!!!--
/fo:flow

but one of my page-sequences has initial-page-number=1. FOP only count x
pages, but my document has x+1 pages. without initial-page-number=1
everything works fine?


-Ursprungliche Nachricht-
Von: J.Pietschmann [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 10. April 2002 21:40
An: [EMAIL PROTECTED]
Betreff: Re: page-number


Henrik Holle wrote:
 how can i count all pages in my document? i have different page-sequence
 master-reference but want to something like : this document has 12
pages.
 is it possible?

Yes, you got some hints already.
Keep in mind that this will force FOP to keep all
pages in memory until the last page is rendered.
If you get a memory overflow exception, remove the
forward reference to the last page first.

J.Pietschmann




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




page-number

2002-04-10 Thread Henrik Holle


hi,

how can i count all pages in my document? i have different page-sequence
master-reference but want to something like : this document has 12 pages.

is it possible?


regards

henrik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: page-number

2002-04-10 Thread Dudley . Butt

yup

Try this in the beginning of your xsl:

fo:block
  fo:page-number//fo:page-number-citation ref-id=endofdoc/
/fo:block

And this somewhere close to the end.

fo:block id=endofdoc/fo:block


-Original Message-
From: Henrik Holle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: page-number



hi,

how can i count all pages in my document? i have different page-sequence
master-reference but want to something like : this document has 12 pages.

is it possible?


regards

henrik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine. 
 
Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies (Dimension Data). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone. 
 
Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




AW: page-number

2002-04-10 Thread Henrik Holle

thx

it nearly works.

but i have e.g. 7 pages, but fo:page-number-citation ref-id=endofdoc/
says 6 ??
Does ist start from 0 ? can i change it, or is something like
fo:page-number-citation ref-id=endofdoc/ + 1 possible ?


henrik


yup

Try this in the beginning of your xsl:

fo:block
  fo:page-number//fo:page-number-citation ref-id=endofdoc/
/fo:block

And this somewhere close to the end.

fo:block id=endofdoc/fo:block


-Original Message-
From: Henrik Holle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: page-number



hi,

how can i count all pages in my document? i have different page-sequence
master-reference but want to something like : this document has 12 pages.

is it possible?


regards

henrik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine.

Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies (Dimension Data). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone.

Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: page-number

2002-04-10 Thread Dudley . Butt


this tag must be right at the end of the doc fo:block
id=endofdoc/fo:block

-Original Message-
From: Henrik Holle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 3:42 PM
To: [EMAIL PROTECTED]
Subject: AW: page-number


thx

it nearly works.

but i have e.g. 7 pages, but fo:page-number-citation ref-id=endofdoc/
says 6 ??
Does ist start from 0 ? can i change it, or is something like
fo:page-number-citation ref-id=endofdoc/ + 1 possible ?


henrik


yup

Try this in the beginning of your xsl:

fo:block
  fo:page-number//fo:page-number-citation ref-id=endofdoc/
/fo:block

And this somewhere close to the end.

fo:block id=endofdoc/fo:block


-Original Message-
From: Henrik Holle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: page-number



hi,

how can i count all pages in my document? i have different page-sequence
master-reference but want to something like : this document has 12 pages.

is it possible?


regards

henrik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine.

Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies (Dimension Data). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone.

Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine. 
 
Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies (Dimension Data). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone. 
 
Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




re: page-number

2002-04-10 Thread Henrik Holle

nice try ;)

fo:block id=endofdoc/fo:block ist at the end !

on the first page i have fo:page-number-citation ref-id=endofdoc/

and at the last page-sequence i have fo:block id=endofdoc/fo:block

but fop forget to count 1 page





-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 10. April 2002 16:04
An: [EMAIL PROTECTED]
Betreff: RE: page-number



this tag must be right at the end of the doc fo:block
id=endofdoc/fo:block

-Original Message-
From: Henrik Holle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 3:42 PM
To: [EMAIL PROTECTED]
Subject: AW: page-number


thx

it nearly works.

but i have e.g. 7 pages, but fo:page-number-citation ref-id=endofdoc/
says 6 ??
Does ist start from 0 ? can i change it, or is something like
fo:page-number-citation ref-id=endofdoc/ + 1 possible ?


henrik


yup

Try this in the beginning of your xsl:

fo:block
  fo:page-number//fo:page-number-citation ref-id=endofdoc/
/fo:block

And this somewhere close to the end.

fo:block id=endofdoc/fo:block


-Original Message-
From: Henrik Holle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: page-number



hi,

how can i count all pages in my document? i have different page-sequence
master-reference but want to something like : this document has 12 pages.

is it possible?


regards

henrik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine.

Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies (Dimension Data). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone.

Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine.

Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies (Dimension Data). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone.

Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED

RE: page-number

2002-04-10 Thread Louis . Masters


Here is my body flow from my main page sequence:

fo:flow flow-name=xsl-region-body
 xsl:apply-templates select=data/
 fo:block id=lastpage/fo:block  !-- IMPORTANT: THIS MUST BE THE
LAST THING!!!--
/fo:flow

Reference it in your content as:

fo:block font-size=8pt color=black text-align=end
 Page fo:page-number/ of fo:page-number-citation ref-id=lastpage/
/fo:block

Hope this helps.  I also think info on this is in the FAQ.

-Lou






[EMAIL PROTECTED] on 04/10/2002 10:03:48

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  RE: page-number


this tag must be right at the end of the doc fo:block
id=endofdoc/fo:block

-Original Message-
From: Henrik Holle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 3:42 PM
To: [EMAIL PROTECTED]
Subject: AW: page-number


thx

it nearly works.

but i have e.g. 7 pages, but fo:page-number-citation ref-id=endofdoc/
says 6 ??
Does ist start from 0 ? can i change it, or is something like
fo:page-number-citation ref-id=endofdoc/ + 1 possible ?


henrik


yup

Try this in the beginning of your xsl:

fo:block
  fo:page-number//fo:page-number-citation ref-id=endofdoc/
/fo:block

And this somewhere close to the end.

fo:block id=endofdoc/fo:block


-Original Message-
From: Henrik Holle [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: page-number



hi,

how can i count all pages in my document? i have different page-sequence
master-reference but want to something like : this document has 12
pages.

is it possible?


regards

henrik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine.

Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies (Dimension Data). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone.

Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


This message contains information intended solely for the addressee,
which is confidential or private in nature and subject to legal privilege.
If you are not the intended recipient, you may not peruse, use,
disseminate, distribute or copy this message or any file attached to this
message. Any such unauthorised use is prohibited and may be unlawful. If
you have received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
original message from your machine.

Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the
views and opinions of Dimension Data (South Africa) (Proprietary) Limited
or is subsidiaries and associated companies (Dimension Data). Dimension
Data therefore does not accept liability for any claims, loss or damages
of whatsoever nature, arising as a result of the reliance on such
information by anyone.

Whilst all reasonable steps are taken to ensure the accuracy and
integrity of information transmitted electronically and to preserve the
confidentiality thereof, Dimension Data accepts no liability or
responsibility whatsoever if information or data is, for whatsoever
reason, incorrect, corrupted or does not reach its intended destination.



-
To unsubscribe, e-mail: [EMAIL

Re: page-number

2002-04-10 Thread J.Pietschmann

Henrik Holle wrote:
 how can i count all pages in my document? i have different page-sequence
 master-reference but want to something like : this document has 12 pages.
 is it possible?

Yes, you got some hints already.
Keep in mind that this will force FOP to keep all
pages in memory until the last page is rendered.
If you get a memory overflow exception, remove the
forward reference to the last page first.

J.Pietschmann




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: page-number-citation and formatting

2001-12-10 Thread Matthias Fischer

We had the same problem you had, Phil. I admit, the output is not too
representable due to this (among other) problems of FOP. Another problem
would be that, if you use a filler of type ., it assumes a fix width.
It does not seem to be able to fill out the variable space between the text
of a TOC heading and the corresponding page number, like is shown in the
following example:

Long text long text . 12
Short text .. 18

Matthias



-Original Message-
From: Philip Harling [mailto:[EMAIL PROTECTED]]On Behalf Of Phillip
Harling
Sent: Friday, December 07, 2001 6:11 PM
To: [EMAIL PROTECTED]
Subject: page-number-citation and formatting


I'm having a small problem when using fo:page-number-citation/ and
formatting.  I am generating a table of contents using a table, and wish to
right align the page numbers.  If the table of contents appears at the
beginning of the document, the numbers don't get right-aligned, but if the
table of contents appears at the end of the document then they get aligned
correctly.

What appears to be happening is that if a forward reference is made to a
page citation then fop doesn't know how big the page number will be and
doesn't allocate any area for it.  If the page number is known, then the
space it allocates is known and correct alignment can occur.

I've had a look at org.apache.fop.fo.flow.PageNumberCitation and this seems
to bear up to the analysis.

Has anyone else experienced this problem and if so, do you have a
work-around?

Phil.



--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




page-number-citation and formatting

2001-12-07 Thread Phillip Harling

I'm having a small problem when using fo:page-number-citation/ and formatting.  I am 
generating a table of contents using a table, and wish to right align the page 
numbers.  If the table of contents appears at the beginning of the document, the 
numbers don't get right-aligned, but if the table of contents appears at the end of 
the document then they get aligned correctly.

What appears to be happening is that if a forward reference is made to a page citation 
then fop doesn't know how big the page number will be and doesn't allocate any area 
for it.  If the page number is known, then the space it allocates is known and correct 
alignment can occur.

I've had a look at org.apache.fop.fo.flow.PageNumberCitation and this seems to bear up 
to the analysis.

Has anyone else experienced this problem and if so, do you have a work-around?

Phil.



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: page-number-citation and formatting

2001-12-07 Thread Vladimir Sneblic

Hi Phillip,

I'm trying to generate a contents page myself, but since I'm quite new to
FOP I have no idea as to how to make a reference to page numbers of pages in
the document. It seams like you've solved this problem and I was wondering
if you would be willing to share this information, or point me in the
direction of a web page (or some other resource) that discusses this kind of
thing.

Here's what I'm trying to do in a bit more detail. I'm creating a PDF
document from a FOP template which is dynamically modified with the data
from the database. The reason why I can't just create a static content page
is because of the dynamic content (which needs a variable number of pages).
What's the best way to handle this kind of a problem?

Thanks in advance,

Vladimir

 -Original Message-
From:   Phillip Harling [mailto:[EMAIL PROTECTED]] 
Sent:   Saturday, 8 December 2001 6:11 a.m.
To: [EMAIL PROTECTED]
Subject:page-number-citation and formatting

I'm having a small problem when using fo:page-number-citation/ and
formatting.  I am generating a table of contents using a table, and wish to
right align the page numbers.  If the table of contents appears at the
beginning of the document, the numbers don't get right-aligned, but if the
table of contents appears at the end of the document then they get aligned
correctly.

What appears to be happening is that if a forward reference is made to a
page citation then fop doesn't know how big the page number will be and
doesn't allocate any area for it.  If the page number is known, then the
space it allocates is known and correct alignment can occur.

I've had a look at org.apache.fop.fo.flow.PageNumberCitation and this seems
to bear up to the analysis.

Has anyone else experienced this problem and if so, do you have a
work-around?

Phil.



--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Setting the page-number

2001-12-05 Thread Corinna Hischke



Hi,

you can begin a new page count by starting a new page-sequence 
and setting the property initial-page-number="1".

- Corinna

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, December 03, 2001 11:59 
  AM
  Subject: Setting the page-number
  Hi folks, i've got the following problem: Is there a way to set the current page-number within a 
  page-sequence? I'm looking for something like that "fo:page-number 
  current-page='1'/ Details: A RTF-document 
  with placeholders (introduced by a escape-character, e.g. "~") is converted to 
  FO using rtf2fo (http://www.novosoft-us.com/ns2b.nsf/w1/RTF2FO). 
  After that i search in the FO-File for placeholders and replace them. 
  Example: RTF: Dear Mr. ~mister 
  FO: 
  .fo:inlineDear Mr. ~mister/fo:inline. 
  So i have a special placeholder "~page", 
  which is replaced by "fo:page-number/" (occours in footer). The 
  RTF-document consist of 2 or more chapters and every chapter should start with 
  page-number 1. At the begin of a chapter there is a placeholder 
  "~reset-page-count"... and therefore i need a fo-tag. 



Setting the page-number

2001-12-03 Thread sascha . schmidt

Hi folks,

i've got the following problem:

Is there a way to set the current page-number within a page-sequence? I'm looking for something like that fo:page-number current-page='1'/

Details:

A RTF-document with placeholders (introduced by a escape-character, e.g. ~) is converted to FO using rtf2fo (http://www.novosoft-us.com/ns2b.nsf/w1/RTF2FO). After that i search in the FO-File for placeholders and replace them.

Example:
RTF: Dear Mr. ~mister
FO: .fo:inlineDear Mr. ~mister/fo:inline.

So i have a special placeholder ~page, which is replaced by fo:page-number/ (occours in footer). The RTF-document consist of 2 or more chapters and every chapter should start with page-number 1. At the begin of a chapter there is a placeholder ~reset-page-count... and therefore i need a fo-tag.


a custom header according to page number

2001-12-03 Thread Ismaeil, Sameh Z

Hello everybody
I am a FOP beginner, can somebody help me please with this problem

I need to put a cutsomized header in my pages, the header should contain a
different block (of text) according to the page currently being generated,
so the condition will be based on the page number

1. is there an fo property I can use (say for the static-content or the
block elemtents) that makes certain blocks appear/disappear from headers
according to page number
2. how can I use FOP to generate this content

Thanks a million

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: a custom header according to page number

2001-12-03 Thread Cyril Rognon

Your question is a little underspecified ...

if you want to distinguish odd and even pages, the page master
conditionnal part is for you (see the page master fo definition : chapter
6.4.11
http://www.w3.org/TR/xsl/slice6.html#fo_conditional-page-master-reference).
I think you may handle more than just odd-even with this. Use this with
different header section...

Don't think about using some predicate considering the page number, xsl
fo and fop are loosely coupled, it is meant to be that way. So it forbids
the user to use the internal page number programaticaly (some FO
processor provide extension to do this, fop does not).

if your need is more complex and you have some magic formula to guess
wich page is affected, conditionnal master-page may be to low level
...

Good luck.

At 13:13 03/12/2001 +, you wrote:
Hello everybody
I am a FOP beginner, can somebody help me please with this problem

I need to put a cutsomized header in my pages, the header should contain
a
different block (of text) according to the page currently being
generated,
so the condition will be based on the page number

1. is there an fo property I can use (say for the static-content or
the
block elemtents) that makes certain blocks appear/disappear from
headers
according to page number
2. how can I use FOP to generate this content


Cyril Rognon
http://www.objectiva.fr



RE: a custom header according to page number

2001-12-03 Thread Ismaeil, Sameh Z



Thanks 
Cyril,
please 
see answers below

  -Original Message-From: Cyril Rognon 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 03, 2001 3:46 
  PMTo: [EMAIL PROTECTED]Subject: Re: a custom header 
  according to page numberYour question is a little 
  underspecified ...if you want to distinguish odd and even pages, the 
  page master conditionnal part is for you (see the page master fo definition : 
  chapter 6.4.11 
  http://www.w3.org/TR/xsl/slice6.html#fo_conditional-page-master-reference). I 
  think you may handle more than just odd-even with this. Use this with 
  different header section...[Ismaeil, Sameh]no, I don't want to 
  distinguish odd and even pages,specifically, I need to distinguish the 
  frist page from the rest of the pages, any clue?Don't 
  think about using some predicate considering the page number, xsl fo and fop 
  are loosely coupled, it is meant to be that way. So it forbids the user to use 
  the internal page number programaticaly (some FO processor provide extension 
  to do this, fop does not).[Ismaeil, Sameh]yes, I kind of noticed 
  that , it is usually one way: FOP code - fo XSL -pdf 
  documentif your need is more complex and you have some magic 
  formula to guess wich page is affected, conditionnal master-page may be to low 
  level ...[Ismaeil, Sameh]I'll give conditional-master-page some insight 
  and hope it will work, thanks a lotGood 
  luck.At 13:13 03/12/2001 +, you wrote:
  Hello everybodyI am a FOP 
beginner, can somebody help me please with this problemI need to put 
a cutsomized header in my pages, the header should contain adifferent 
block (of text) according to the page currently being generated,so the 
condition will be based on the page number1. is there an fo property 
I can use (say for the static-content or theblock elemtents) that makes 
certain blocks appear/disappear from headersaccording to page 
number2. how can I use FOP to generate this 
  content
  Cyril Rognonhttp://www.objectiva.fr 



RE: a custom header according to page number

2001-12-03 Thread Cyril Rognon

If you only need to ditinguish the first page from the other ones, simply
use a different page-master (reference or name ;-) according to the spec
conformance) and use this page master for your cover page only. This will
do the trick easily.

one page-master for the cover (one page-sequence using this
page-master-reference) , and different page-master for the rest of the
page sequences.

I strongly recomend you to read some FO tutorial, this will spare you a
lot of research work (you'll find some ref on
http://www.w3.org/Style/XSL/)
At 14:18 03/12/2001 +, you wrote:
Thanks
Cyril,
please see answers
below

Your question is a little underspecified ...
...
[Ismaeil, Sameh] no, I don't want to distinguish odd and even pages,
specifically, I need to distinguish the frist page from the rest of the
pages, any clue? 
Don't think about using some predicate considering the page number,
xsl fo and fop are loosely coupled, it is meant to be that way. So it
forbids the user to use the internal page number programaticaly (some FO
processor provide extension to do this, fop does
not).
[Ismaeil, Sameh] yes, I kind of noticed that , it is usually one way:
FOP code - fo XSL -pdf document
if your need is more complex and you have some magic formula to guess
wich page is affected, conditionnal master-page may be to low level
...
[Ismaeil, Sameh] I'll give conditional-master-page some insight and
hope it will work, thanks a lot
Good luck.
...


Cyril Rognon
http://www.objectiva.fr



Re: a custom header according to page number

2001-12-03 Thread Jens Eckert


I do have a similar (or the same?) problem. I have a flow that runs
through all the pages. On the first page, though, I'd like to have a different
header (static content). So far I defined two simple-page masters and a
page-sequence-master that uses a simple-page master for the first page
and the other one for the rest.
But where do I specify where which (static content) header to use? In
the page-masters I can only set margins etc.(?) I tried to use two
page-sequences, one for each page master, but then I get the XML-content
twice: once for the first page sequence once for the second. Can I specify
static content in the page-master?
Thanks
Jens

Cyril Rognon schrieb:
If you only need to ditinguish the first page
from the other ones, simply use a different page-master (reference or name
;-) according to the spec conformance) and use this page master for your
cover page only. This will do the trick easily.
one page-master for the cover (one page-sequence using this page-master-reference)
, and different page-master for the rest of the page sequences.
I strongly recomend you to read some FO tutorial, this will spare you
a lot of research work (you'll find some ref on http://www.w3.org/Style/XSL/)
At 14:18 03/12/2001 +, you wrote:
Thanks
Cyril,
please see answers
below


Your question is a little underspecified ...


...


[Ismaeil, Sameh]
no, I don't want to distinguish odd and even pages, specifically, I need
to distinguish the frist page from the rest of the pages, any clue?


Don't think about using some predicate considering the page number, xsl
fo and fop are loosely coupled, it is meant to be that way. So it forbids
the user to use the internal page number programaticaly (some FO processor
provide extension to do this, fop does not).


[Ismaeil, Sameh]
yes, I kind of noticed that , it is usually one way: FOP code -> fo XSL
->pdf document


if your need is more complex and you have some magic formula to guess wich
page is affected, conditionnal master-page may be to low level ...


[Ismaeil, Sameh]
I'll give conditional-master-page some insight and hope it will work, thanks
a lot


Good luck.


...



Cyril Rognon
http://www.objectiva.fr



Re: a custom header according to page number

2001-12-03 Thread Arved Sandstrom



Hi, Jens

In the page masters you can explicitly specify the 
region-master names also, using the 'region-name' property. It so happens that 
many people leave these off in examples, and the default values (such as 
'xsl-region-start') get assigned. So don't trust examples all the time. 
:-)

Let's say you have one page-master for the first 
page, and another page-master for the rest of the pages. Give the 
region-before's different region-names. Then, in your page-sequence, define 2 
static-contents for the headers, one of which references one region-name, and 
the other references the other region-name. They will get appropriately 
mapped.

Hope this helps.

Arved Sandstrom

  - Original Message - 
  From: 
  Jens 
  Eckert 
  To: [EMAIL PROTECTED] 
  Sent: Monday, December 03, 2001 11:21 
  AM
  Subject: Re: a custom header according to 
  page number
  I do have a similar (or the same?) problem. I have a flow 
  that runs through all the pages. On the first page, though, I'd like to have a 
  different header (static content). So far I defined two simple-page masters 
  and a page-sequence-master that uses a simple-page master for the first page 
  and the other one for the rest. 
  But where do I specify where which (static content) header to use? In the 
  page-masters I can only set margins etc.(?) I tried to use two 
  page-sequences, one for each page master, but then I get the XML-content 
  twice: once for the first page sequence once for the second. Can I specify 
  static content in the page-master? 
  Thanks 
  Jens  
  Cyril Rognon schrieb: 
  If you only need to ditinguish the first page 
from the other ones, simply use a different page-master (reference or name 
;-) according to the spec conformance) and use this page master for your 
cover page only. This will do the trick easily. 
one page-master for the cover (one page-sequence using this 
page-master-reference) , and different page-master for the rest of the page 
sequences. 
I strongly recomend you to read some FO tutorial, this will spare you a 
lot of research work (you'll find some ref on http://www.w3.org/Style/XSL/) At 
14:18 03/12/2001 +, you wrote: 
Thanks Cyril, please see answers 
  below 
  
Your question is a little underspecified ... 
... 
[Ismaeil, Sameh] 
no, I don't want to distinguish odd and even pages, specifically, I need 
to distinguish the frist page from the rest of the pages, any 
clue? 
Don't think about using some predicate considering the page number, 
xsl fo and fop are loosely coupled, it is meant to be that way. So it 
forbids the user to use the internal page number programaticaly (some FO 
processor provide extension to do this, fop does not). 
[Ismaeil, Sameh] 
yes, I kind of noticed that , it is usually one way: FOP code - fo 
XSL -pdf document 
if your need is more complex and you have some magic formula to 
guess wich page is affected, conditionnal master-page may be to low 
level ... 
[Ismaeil, Sameh] 
I'll give conditional-master-page some insight and hope it will work, 
thanks a lot 
Good luck. 
... 
Cyril Rognon http://www.objectiva.fr


Re: a custom header according to page number

2001-12-03 Thread Cyril Rognon

Jens,

I think you are trying to do too much in the fo stage. It is aknowledged
that you have the power of xsl fo to take care of formatting. The feature
you are talking about is a document structure decision. It is meant to be
done by XSLT code. When you decide to create your fo document, you must
have a way to know wether you are writing the cover page or some of the
content after. Thus, you can have one xsl template that will create a
different page-sequence with the appropriate header in the static-content
and some other template that will use a regular page-sequence for the
rest of the document.

this is definitely a job for XSLT. Not to be done in fo only. You need
two explicit page-sequence and you drive this by XSLT.

I hope my explaination is as clear as in my mind... ;-)

At 16:21 03/12/2001 +0100, you wrote:
I do have a similar (or the
same?) problem. I have a flow that runs through all the pages. On
the first page, though, I'd like to have a different header (static
content). So far I defined two simple-page masters and a
page-sequence-master that uses a simple-page master for the first page
and the other one for the rest. 

But where do I specify where which (static content) header to use? In the
page-masters I can only set margins etc.(?) I tried to use two
page-sequences, one for each page master, but then I get the XML-content
twice: once for the first page sequence once for the second. Can I
specify static content in the page-master? 

Cyril Rognon
http://www.objectiva.fr



Re: a custom header according to page number

2001-12-03 Thread Jens Eckert


I had this idea as well, but only FO knows which if it is formatting the
first or the other pages.
But Arved's approach works fine. Thanks a lot!
Jens
Cyril Rognon schrieb:
Jens,
I think you are trying to do too much in the fo stage. It is aknowledged
that you have the power of xsl fo to take care of formatting. The feature
you are talking about is a document structure decision. It is meant to
be done by XSLT code. When you decide to create your fo document, you must
have a way to know wether you are writing the cover page or some of the
content after. Thus, you can have one xsl template that will create a different
page-sequence with the appropriate header in the static-content and some
other template that will use a regular page-sequence for the rest of the
document.
this is definitely a job for XSLT. Not to be done in fo only. You need
two explicit page-sequence and you drive this by XSLT.
I hope my explaination is as clear as in my mind... ;-)
At 16:21 03/12/2001 +0100, you wrote:
I do have a similar (or the same?)
problem. I have a flow that runs through all the pages. On the first page,
though, I'd like to have a different header (static content). So far I
defined two simple-page masters and a page-sequence-master that uses a
simple-page master for the first page and the other one for the rest.
But where do I specify where which (static content) header to use? In
the page-masters I can only set margins etc.(?) I tried to use two
page-sequences, one for each page master, but then I get the XML-content
twice: once for the first page sequence once for the second. Can I specify
static content in the page-master?

Cyril Rognon
http://www.objectiva.fr



Re: How can I dynmaically use page-number?

2001-10-04 Thread Keiron Liddle


I think the best way to handle this would be with an extension.

An external graphic does not know what page it is on and the page number
cannot be resolved until after the image is loaded.

The website has some info about creating extensions.

On Thu, 04 Oct 2001 18:51:38 Clute, Andrew wrote:
 I am trying to place a unique barcode on every single page that is
 rendered.
 Right now my code is hard-coded to the barcode generator:
 
 code
 fo:external-graphic height=1.2in width=.35in
 src=http://localhost:7001/barcode?code=0401degree=270caption=t/
 /code
 
 Which is telling the barcode server to return a barcode for page 1 of 4. 
 
 Ideally, I would like to do something like this: 
 
 code
 fo:external-graphic height=1.2in width=.35in
 src=http://localhost:7001/barcode?code=04fo:page-number/amp;degree=270a
 mp;caption=t/
 /code
 
 Which, of course is not valid XML. Anyone have insight on how I might go
 about accomplishing this? 
 
 Thanks 
 
 -andrew 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Formatting in addiction to the total page number

2001-09-19 Thread viktor . keimes

Hi, 

perhaps someone have a response to my problem:

On top of the first page I would like to make a warning output (e.g. This
document contains 10 pages!), but only if the document has more than one
page. If the document has exactly one page, no warning should appear. Is
this possible ?

I have try something like this:

xsl:param name=PAGESfo:page-number-citation
ref-id=end-of-document//xsl:param

xsl:if test=$PAGES1
!-- or xsl:if test=$PAGES gt; 1 , but no more success -- 
fo:block
This document contains fo:page-number-citation
ref-id=end-of-document/ pages!
/fo:block
/xsl:if

[... ]

fo:block id=end-of-document /

but this does't work.

Greetings
Viktor Keimes



-
This message is intended for the addressee or its representative only. Any
form of unauthorized use, publication, reproduction, copying or disclosure
of the content of this e-mail is not permitted. If you are not the intended
recipient of this e-mail message and its contents, please notify the sender
immediately and delete this message and all its attachments subsequently.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Formatting in addiction to the total page number

2001-09-19 Thread Keiron Liddle


This is possible with a bit of inovation.
Thanks to the support of markers and svg.
The only problem is that the message will appear on all pages except the
last page, unless someone knows how to solve this.

The idea is to put the message in the static area and also have a marker
that is placed in the same position as the message. The marker contents
simply has an svg rect that is white so it hides the message.

Find the examples below.

Also note that I noticed a bug with the markers, the first problem is that
it doesn't like it if there is white space before the marker (so it thinks
it is not the first child in the block) and the second problem is that an
npe results from the first error due to the log being null, my fault.

--
?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
  margin-right=1.5cm
  margin-left=1.5cm
  margin-bottom=2cm
  margin-top=1cm
  page-width=21cm
  page-height=29.7cm
  master-name=first
  fo:region-before extent=1cm/
  fo:region-body margin-top=1cm/
  fo:region-after extent=1.5cm/
/fo:simple-page-master
  /fo:layout-master-set

  fo:page-sequence master-name=first
fo:static-content flow-name=xsl-region-before
fo:block-container height=1cm width=15cm top=0cm left=0cm
position=absolute
fo:block
WARNING THIS IS NOT THE LAST PAGE  fo:page-number-citation
ref-id=end-of-document/
  /fo:block
/fo:block-container
fo:block-container height=1cm width=15cm top=0cm left=0cm
position=absolute
fo:block
  fo:retrieve-marker retrieve-class-name=term
  retrieve-boundary=page
  retrieve-position=last-ending-within-page/
  /fo:block
/fo:block-container
/fo:static-content

fo:static-content flow-name=xsl-region-after
fo:block text-align=start
  font-size=10pt font-family=serif line-height=1em + 2pt
  Page (fo:page-number/ / fo:page-number-citation
ref-id=end-of-document/)
  /fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body

  fo:block text-align=start font-size=12pt font-family=sans-serif
flow stuff
  /fo:block

fo:block id=end-of-documentfo:marker
marker-class-name=term
fo:instream-foreign-object
svg xmlns=http://www.w3.org/2000/svg; width=15cm height=1cm
xml:space=preserve
 rect style=fill:white;stroke:white x=0 y=0 width=15cm
height=1cm/
/svg
/fo:instream-foreign-object
/fo:marker
  /fo:block

/fo:flow
  /fo:page-sequence
/fo:root




add this after first block in flow to get two pages

  fo:block break-before=page text-align=start font-size=12pt
font-family=sans-serif
flow stuff
  /fo:block



On Wed, 19 Sep 2001 15:51:20 [EMAIL PROTECTED] wrote:
 Hi, 
 
 perhaps someone have a response to my problem:
 
 On top of the first page I would like to make a warning output (e.g.
 This
 document contains 10 pages!), but only if the document has more than one
 page. If the document has exactly one page, no warning should appear. Is
 this possible ?
 
 I have try something like this:
 
 xsl:param name=PAGESfo:page-number-citation
 ref-id=end-of-document//xsl:param
 
 xsl:if test=$PAGES1
 !-- or xsl:if test=$PAGES gt; 1 , but no more success -- 
 fo:block
 This document contains fo:page-number-citation
 ref-id=end-of-document/ pages!
 /fo:block
 /xsl:if
 
 [... ]
 
 fo:block id=end-of-document /
 
 but this does't work.
 
 Greetings
 Viktor Keimes

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Formatting in addiction to the total page number

2001-09-19 Thread Keiron Liddle

On Wed, 19 Sep 2001 17:31:43 Keiron Liddle wrote:
 
 This is possible with a bit of inovation.
 Thanks to the support of markers and svg.
 The only problem is that the message will appear on all pages except the
 last page, unless someone knows how to solve this.

Sorry about the double message.

I have the answer to my problem.
The solution (of course) is to use a marker at the top of the flow for the
warning message with retrieve-position=first-starting-within-page. So
that if the start and end of the flow are on the same page then you see no
message. If the end is on a different page then you see the message only on
the first page.

At least that is one way to do it.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Total page number of a PDF document

2001-09-14 Thread viktor . keimes

Hi!

Is it possible to indicate the total page number of the document, e.g. for
an output of the type page 3 of 35 ?
I did not find something to this question in the documentation or the
examples.

Thank you first

Greetings
Viktor Keimes

___
 Dr. Viktor Keimes
 Gerling GKI AB-IM; Spiesergasse 20, D-50597 Köln
 Tel: +49 (0)221 144-62005
e-Mail: [EMAIL PROTECTED]
___





-
This message is intended for the addressee or its representative only. Any
form of unauthorized use, publication, reproduction, copying or disclosure
of the content of this e-mail is not permitted. If you are not the intended
recipient of this e-mail message and its contents, please notify the sender
immediately and delete this message and all its attachments subsequently.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Total page number of a PDF document

2001-09-14 Thread Smith, Paul R

There is an example concerning this in the doco I think but...

Put a block like this in the document

fo:block border-color=white border-style=solid text-align=end
  Page fo:page-number/ of fo:page-number-citation
ref-id=terminator/
/fo:block

and then at the end of the document put a block with the id terminator, like
so...

fo:block id=terminator /
  /fo:flow
  /fo:page-sequence
/fo:root

Regards,

- Paul Smith

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 14 September 2001 08:59
To: [EMAIL PROTECTED]
Subject: Total page number of a PDF document


Hi!

Is it possible to indicate the total page number of the document, e.g. for
an output of the type page 3 of 35 ?
I did not find something to this question in the documentation or the
examples.

Thank you first

Greetings
Viktor Keimes

___
 Dr. Viktor Keimes
 Gerling GKI AB-IM; Spiesergasse 20, D-50597 Köln
 Tel: +49 (0)221 144-62005
e-Mail: [EMAIL PROTECTED]
___





-
This message is intended for the addressee or its representative only. Any
form of unauthorized use, publication, reproduction, copying or disclosure
of the content of this e-mail is not permitted. If you are not the intended
recipient of this e-mail message and its contents, please notify the sender
immediately and delete this message and all its attachments subsequently.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Total page number of a PDF document

2001-09-14 Thread jerome.basso

Hi

One solution is to create an empty block at the end of the document with an
id and to use page-number citation toward this block.

   fo:block id=endofdoc /

and

fo:block font-size=9pt line-height=15pt text-align=end
 p. fo:page-number//fo:page-number-citation
ref-id=endofdoc//fo:block

Hope it helps.

Jerome


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 14, 2001 09:59
Subject: Total page number of a PDF document


Hi!

Is it possible to indicate the total page number of the document, e.g. for
an output of the type page 3 of 35 ?
I did not find something to this question in the documentation or the
examples.

Thank you first

Greetings
Viktor Keimes

___
 Dr. Viktor Keimes
 Gerling GKI AB-IM; Spiesergasse 20, D-50597 Köln
 Tel: +49 (0)221 144-62005
e-Mail: [EMAIL PROTECTED]
___





-
This message is intended for the addressee or its representative only. Any
form of unauthorized use, publication, reproduction, copying or disclosure
of the content of this e-mail is not permitted. If you are not the intended
recipient of this e-mail message and its contents, please notify the sender
immediately and delete this message and all its attachments subsequently.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]