RE: printing page numbers
Thanks John, I will try this code out and let you know how it works. Jaysheel. -Original Message- From: john farrow [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 6:27 PM To: [EMAIL PROTECTED] Subject: Re: printing page numbers last-page is used to identify a block which appears on the last page of the document, 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=page margin=2.5cm fo:region-body margin-bottom='2.5cm' region-name=body background-color=#cc/ fo:region-after extent='2cm' region-name=footer background-color=#dd/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=page fo:static-content flow-name=footer fo:block this is the page footer, the page number is fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:block /fo:static-content fo:flow flow-name=body fo:blockThis will be on page one/fo:block fo:block break-before=page This will be on page two /fo:block fo:block id=last-page/ /fo:flow /fo:page-sequence /fo:root John Farrow Ibex PDF Creator - High speed scalable XSL-FO Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand phone +64 4 479 1738 fax +64 4 479 1294 web http://www.xmlpdf.com/ibex.html - Original Message - From: Jaysheel Bhavsar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 12:10 PM Subject: RE: printing page numbers Dear Manoj, Can you explain what you code does? I am very new to XSL-FO. Can you explain where I should place this code in my xsl sheet, what is last-page Is it a reserve word that keep counts of how many pages it has processed at a given point? Also the code you sent me will it work as is? Thank you. Jaysheel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 4:36 PM To: [EMAIL PROTECTED] Subject: Re: printing page numbers Yes you can do that. You need to check usage for fo:block id=last-page/ , fo:page-sequence fo:page-number-citation ref-id=last-page/ Thanks Manoj Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: printing page numbers 02/15/2005 01:29 PM Please respond to fop-user Hi, I was wondering if I can have Page 1 of 10 printed at the bottom of the page instead of just printing Page 1. One thing is that I don't know how many pages I will have in the pdf, since my content is populated dynamically. Any ideas? If any one have a sample code that will be great. Thank you Jaysheel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic parameter settings
thanks! it did the trick regards ManishaJeremias Maerki [EMAIL PROTECTED] wrote: This is an XSLT question, not really FOP-related, but try:orOn 15.02.2005 10:29:53 Manisha Sathe wrote: In XML file itself i have a value which i need to use for row span. I know i can get the value with Also i can set the row span with But what i want is set "RowSpan" value from xml inside "number-rows-spanned" I tried many different ways but unable to get thr, any idea ?Jeremias Maerki-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
Re: printing page numbers
On Feb 15, 2005, at 1:29 PM, Jaysheel Bhavsar wrote: Hi, I was wondering if I can have Page 1 of 10 printed at the bottom of the page instead of just printing Page 1. One thing is that I don't know how many pages I will have in the pdf, since my content is populated dynamically. Any ideas? If any one have a sample code that will be great. Thank you Jaysheel. This is a FAQ: http://xml.apache.org/fop/faq.html#fo-total-pages which actually points to: http://xml.apache.org/fop/fo.html#fo-total-pages If the explanation is not enough for you, let us know how we can change it to make it better. Cheers! Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSLT Forum
Any good XSLT forum where i can post my xslt related queries there ? regards Manisha Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
Re: XSLT Forum
The Mulberry XSLT mailing list...google for it. Glen --- Manisha Sathe [EMAIL PROTECTED] wrote: Any good XSLT forum where i can post my xslt related queries there ? regards Manisha - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] XSLT question
Yes, i subscribe it but whenever i am posting any query it's giving me failure notice. i amposting it here incase anybody knows: I am using xml / xsl to create pdf. I want to do page break at the end of AdvertPage tag. What i am doing is xsl:template match="AdvertPage" fo:table table-layout="fixed" fo:table-column column-width="18cm" /..display of other info.fo:block break-before='page' keep-with-previous='auto' / /xsl:template Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
Getting huge no of errors
Till now i was trying fop through command line. I was passing xml and xsl file and getting pdf file. So far so good. Now i changed it to servlet. Using example servlet provided but i am getting huge number of errors. (although i am getting the o/p) - TraxInputHandler input = new TraxInputHandler(new File(xmlParam), new File(xslParam)); ByteArrayOutputStream out = new ByteArrayOutputStream(); Driver driver = new Driver(); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); input.run(driver); ,. later i write it to pdf file. But i get Errors like [Error] advertformat.xsl:7:37 Element type "xsl:stylesheet" must be declared [Error] advertformat.xsl:8:37 Element type "xsl:template" must be declared [Error] advertformat.xsl:10:37 Element type "fo:table" must be declared [Error] advertformat.xsl:17:37 Element type "fo:table-row" must be declared [Error] advertformat.xsl:17:37 Element type "fo:table-cell" must be declared . .. Like this for all tags it is giving me error. I am getting my pdf file properly but i am not understanding why this is happenning then ? regards Manisha Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
RE: printing page numbers
Hi, Here is part of my xsl sheet it is working fine, I get it to display page 1 of x. Now the problem I am running into is I cannot align my text for some reason. I have tried end and right but my text page 1 of x always stays on the left. Is there something I am missing. Is this because its in the footer of the page? -- fo:layout-master-set !-- layout for the first page -- fo:simple-page-master master-name=test page-height=11in page-width=8.5in margin-bottom=0.25in margin-top=0.25in fo:region-before extent=1.5cm/ fo:region-body margin-top=0.2in/ fo:region-start extent=1.0in/ fo:region-end extent=0.3in/ fo:region-after extent='1.0cm' region-name=footer/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=test initial-page-number=1 !-- usage of page layout -- !-- header -- fo:static-content flow-name=footer fo:block font-family=Helvetica font-size=7pt fo:inline text-align=end Page fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:inline /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block xsl:apply-templates/ /fo:block fo:block id=last-page/ /fo:flow /fo:page-sequence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: printing page numbers
Try out display-align ... Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: RE: printing page numbers 02/16/2005 12:48 PM Please respond to fop-user Hi, Here is part of my xsl sheet it is working fine, I get it to display page 1 of x. Now the problem I am running into is I cannot align my text for some reason. I have tried end and right but my text page 1 of x always stays on the left. Is there something I am missing. Is this because its in the footer of the page? -- fo:layout-master-set !-- layout for the first page -- fo:simple-page-master master-name=test page-height=11in page-width=8.5in margin-bottom=0.25in margin-top=0.25in fo:region-before extent=1.5cm/ fo:region-body margin-top=0.2in/ fo:region-start extent=1.0in/ fo:region-end extent=0.3in/ fo:region-after extent='1.0cm' region-name=footer/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=test initial-page-number=1 !-- usage of page layout -- !-- header -- fo:static-content flow-name=footer fo:block font-family=Helvetica font-size=7pt fo:inline text-align=end Page fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:inline /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block xsl:apply-templates/ /fo:block fo:block id=last-page/ /fo:flow /fo:page-sequence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: printing page numbers
No that didn't work either, any other ideas? Jaysheel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 4:00 PM To: [EMAIL PROTECTED] Subject: RE: printing page numbers Try out display-align ... Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: RE: printing page numbers 02/16/2005 12:48 PM Please respond to fop-user Hi, Here is part of my xsl sheet it is working fine, I get it to display page 1 of x. Now the problem I am running into is I cannot align my text for some reason. I have tried end and right but my text page 1 of x always stays on the left. Is there something I am missing. Is this because its in the footer of the page? -- fo:layout-master-set !-- layout for the first page -- fo:simple-page-master master-name=test page-height=11in page-width=8.5in margin-bottom=0.25in margin-top=0.25in fo:region-before extent=1.5cm/ fo:region-body margin-top=0.2in/ fo:region-start extent=1.0in/ fo:region-end extent=0.3in/ fo:region-after extent='1.0cm' region-name=footer/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=test initial-page-number=1 !-- usage of page layout -- !-- header -- fo:static-content flow-name=footer fo:block font-family=Helvetica font-size=7pt fo:inline text-align=end Page fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:inline /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block xsl:apply-templates/ /fo:block fo:block id=last-page/ /fo:flow /fo:page-sequence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: printing page numbers
Try adding spaces before the Page x of y by using fo:inline#160;#160;#160;#160;#160;#160;#160;#160;/fo:inline fo:inline text-align=endPage fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:inline Let me know Manoj Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: RE: printing page numbers 02/16/2005 01:00 PM Please respond to fop-user No that didn't work either, any other ideas? Jaysheel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 16, 2005 4:00 PM To: [EMAIL PROTECTED] Subject: RE: printing page numbers Try out display-align ... Jaysheel Bhavsar To: [EMAIL PROTECTED] [EMAIL PROTECTED]cc: ite.com Subject: RE: printing page numbers 02/16/2005 12:48 PM Please respond to fop-user Hi, Here is part of my xsl sheet it is working fine, I get it to display page 1 of x. Now the problem I am running into is I cannot align my text for some reason. I have tried end and right but my text page 1 of x always stays on the left. Is there something I am missing. Is this because its in the footer of the page? -- fo:layout-master-set !-- layout for the first page -- fo:simple-page-master master-name=test page-height=11in page-width=8.5in margin-bottom=0.25in margin-top=0.25in fo:region-before extent=1.5cm/ fo:region-body margin-top=0.2in/ fo:region-start extent=1.0in/ fo:region-end extent=0.3in/ fo:region-after extent='1.0cm' region-name=footer/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=test initial-page-number=1 !-- usage of page layout -- !-- header -- fo:static-content flow-name=footer fo:block font-family=Helvetica font-size=7pt fo:inline text-align=end Page fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:inline /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block xsl:apply-templates/ /fo:block fo:block id=last-page/ /fo:flow /fo:page-sequence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
RE: printing page numbers
Move the text-align property to the fo:block element (and you can then remove the inline wrapper, since text-align is its only attribute). Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) Jaysheel Bhavsar [EMAIL PROTECTED] 02/16/2005 02:48 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject RE: printing page numbers Hi, Here is part of my xsl sheet it is working fine, I get it to display page 1 of x. Now the problem I am running into is I cannot align my text for some reason. I have tried end and right but my text page 1 of x always stays on the left. Is there something I am missing. Is this because its in the footer of the page? -- fo:layout-master-set !-- layout for the first page -- fo:simple-page-master master-name=test page-height=11in page-width=8.5in margin-bottom=0.25in margin-top=0.25in fo:region-before extent=1.5cm/ fo:region-body margin-top=0.2in/ fo:region-start extent=1.0in/ fo:region-end extent=0.3in/ fo:region-after extent='1.0cm' region-name=footer/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=test initial-page-number=1 !-- usage of page layout -- !-- header -- fo:static-content flow-name=footer fo:block font-family=Helvetica font-size=7pt fo:inline text-align=end Page fo:page-number/ of fo:page-number-citation ref-id=last-page/ /fo:inline /fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:block xsl:apply-templates/ /fo:block fo:block id=last-page/ /fo:flow /fo:page-sequence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]