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 

RE: Adding a .png Image

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


are you receiving any error messages?

Like Jimi image library not available?

If so you need to download the JIMI library from Sun Microsystems
at http://java.sun.com/products/jimi/ and make sure the the classes
are picked up.



-Original Message-
Hello ,

I want to insert a .png image in table but it seems .png is not supported.

can anyone suggest me a solution where I can achieve this.

Thanks in Advance,
Venkata Suresh.


-
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: generate pdf files and print them to a specific paper bin

2003-01-17 Thread Volker [EMAIL PROTECTED]
Hi Manoj,


there is a way to use different paper sizes at least for some
HP printers (i.e. HP LaserJet 2200 model). The printer driver
lets you choose which sheet size should be used to print the first
page.
Maybe this helps

Volker

-Original Message-
From: Manoj Unnikrishnan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 6:41 PM
To: [EMAIL PROTECTED]
Subject: generate pdf files and print them to a specific paper bin


I want to generate pdf files and print them to a
specific paper bin. How can I do this?
Can I do this while using fop to generate the PDF.
When the PDF is printed I want the first page to be
printed on letter head paper and all the others on
plain paper.

Any help will be appreciated.

Thanks
Manoj Unnikrishnan


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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: FOPException:no protocol when executin driver.run()

2002-03-24 Thread Volker [EMAIL PROTECTED]

Hi Susan,

what files did you try to run? Could it be that you are using images?
If so you have to use URL syntax i.e.
file://path_to_the_location_of_your_image_file.

Volker






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




RE: FopServlet

2002-03-04 Thread Volker [EMAIL PROTECTED]

It looks as if your tomcat installation does not pick up Xalan.jar.
You have to put all FOP jars (fop.jar, batik.jar etc.) into
yourwebapp/WEB-INF/lib/
directory.

Hope this helps

Volker

-Original Message-
From: Deb Schmutz [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:17 AM
To: [EMAIL PROTECTED]
Subject: FopServlet


I am new to Fop and having problems with the
FopServlet that came with Fop-0.20.2.  Please can
anyone give me any pointers.  TIA.

Error: 500
Location: /fop/fop
Internal Servlet Error:

javax.servlet.ServletException
at FopServlet.renderXML(FopServlet.java:135)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

Root cause:
org.apache.fop.apps.FOPException
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

-

java.lang.reflect.InvocationTargetException:
javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.xalan.processor.TransformerFactoryImpl
at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:1
21)
at
org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.xalan.processor.TransformerFactoryImpl
at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:1
21)
at
org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at

RE: Concat

2002-01-14 Thread Volker [EMAIL PROTECTED]



Hi,

xsl-fo 
does not have a function which can be used to concatenate 
strings.
XSL-Transformation however has such a function (concat(...)) it takes an 
many arguments
as you 
like. I suppose your parameter is storedas an attributeof some 
element or as
element contentin your xml input. You can use the following line to 
concatenate strings

img href="javascript:void(0);"MARGIN-RIGHT: 0px">
  Is there a function like concat for Strings. 
  
  
   I have a param in the xml file 
  (the path of a directory) and the name in the XSL file, so I want to create a 
  full path with the path of the directory and the name of the file. 
  
  
   Any Idea??
  
   Salve
  
  
  Siete 
  buoni, se potete