RE: Adding same header and footer for multiple page sequences in XSLFO

2007-10-12 Thread Brown, Phyllis (NIH/NIEHS) [C]
Hi,
 
You should be able to put the  in the .
 



 This Text belongs to the footer part of the FO page


 
 




-Original Message-
From: Murali Krishna [mailto:[EMAIL PROTECTED]
Sent: Friday, October 12, 2007 6:07 AM
To: FOP users
Subject: Adding same header and footer for multiple page sequences in XSLFO


Hi,
I have a requirement to have same header and footer on every page of the pdf 
output of xslfo .
Without using following redundant code in every page sequence how could i 
achieve the same effect by declaring the footer once and just refer somehow to 
that on every page sequence.
 
The footer is as follows:-
 

 
  This Text belongs to the footer part of the FO page


 
Thanking in anticipation,
 
Murali Krishna



bug in FOP 0.94?

2007-10-12 Thread Charlie Flowers
Hi all,

 

The attached .fo file renders to PDF correctly when using FOP 0.93, but
errors out with a NullPointerException when using FOP 0.94 (see the
attached txt file for the specific error).  Per bug-reporting protocol,
I wanted to see if anyone here had any insight before I logged it as a
bug.

 

Thanks,

 

Charlie Flowers

Oct 12, 2007 11:43:55 AM org.apache.fop.cli.CommandLineOptions dumpConfiguration
INFO: Input mode: 
Oct 12, 2007 11:43:55 AM org.apache.fop.cli.CommandLineOptions dumpConfiguration
INFO: FO 
Oct 12, 2007 11:43:55 AM org.apache.fop.cli.CommandLineOptions dumpConfiguration
INFO: fo input file: test.fo
Oct 12, 2007 11:43:55 AM org.apache.fop.cli.CommandLineOptions dumpConfiguration
INFO: Output mode: 
Oct 12, 2007 11:43:55 AM org.apache.fop.cli.CommandLineOptions dumpConfiguration
INFO: application/pdf
Oct 12, 2007 11:43:55 AM org.apache.fop.cli.CommandLineOptions dumpConfiguration
INFO: output file: output.pdf
Oct 12, 2007 11:43:55 AM org.apache.fop.cli.CommandLineOptions dumpConfiguration
INFO: OPTIONS
Oct 12, 2007 11:43:55 AM org.apache.fop.cli.CommandLineOptions dumpConfiguration
INFO: user configuration file: c:\trax\dll\fop-0.94\conf\fop.xconf
Oct 12, 2007 11:43:55 AM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-height set to: 11in
Oct 12, 2007 11:43:55 AM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-width set to: 8.26in
Oct 12, 2007 11:43:56 AM org.apache.fop.layoutmgr.table.TableLayoutManager 
getNextKnuthElements
INFO: table-layout="fixed" and width="auto", but auto-layout not supported => 
assuming width="100%"
Oct 12, 2007 11:43:56 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)

-

java.lang.NullPointerException
at 
org.apache.fop.layoutmgr.table.RowPainter.addAreasAndFlushRow(RowPainter.java:149)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.iterateAndPaintPositions(TableContentLayoutManager.java:757)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(TableContentLayoutManager.java:694)
at 
org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayoutManager.java:334)
at 
org.apache.fop.layoutmgr.AreaAdditionUtil.addAreas(AreaAdditionUtil.java:118)
at 
org.apache.fop.layoutmgr.FlowLayoutManager.addAreas(FlowLayoutManager.java:297)
at org.apache.fop.layoutmgr.PageBreaker.addAreas(PageBreaker.java:241)
at 
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:507)
at 
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:370)
at org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:262)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:345)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:144)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:233)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:145)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)


test.fo
Description: test.fo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT

Re: Running header background colour

2007-10-12 Thread Daniel Baptista

Hi Johannes,

Thank you very much, someone else had updated the docbook-xsl recently, 
I wrongly assumed that they had taken the most recent version.

Updating solved my problem.

Thanks again,
Daniel


Johannes Katelaan wrote:

Hi Daniel,

I think your version of docbook-xsl is too old. Try a more recent one.

Johannes

Am 11.10.2007 um 17:51 schrieb Daniel Baptista:


Hi Johannes,
Thanks for the response.

I cant seem to find that string anywhere, I have also searched for 
just the values of the xsl:use-attribute-sets attribute and I didn't 
find that either (except for inside my stylesheet which finds the 
snippet that I pasted earlier) so I assume that this means the 
attribute set is  not being used.


Do I have to modify my fo/pagesetup.xsl? or something like that?

Thanks again,
Daniel

Johannes Katelaan wrote:

Hi Daniel,

could you post the part of the code, where this attribute-set is 
used? I would expect something like this:


  

For me this works perfectly.

Johannes

Am 11.10.2007 um 15:17 schrieb Daniel Baptista:

Hi Guys, I have added the following to my customisation layer in 
the hope of setting the background colour or my running headers to red.


  
#FF

  

It doesn't seem to work, but the book at 
http://www.sagehill.net/docbookxsl/PrintHeaders.html (About half 
way down) seems to suggest that it does.


Im using FOP 0.20.5, dockbook-xml-4.5 and docbook-xsl-1.72.0

Any suggestions?
--
*VoxSurf Limited*
Registered & principal office:
2nd Floor
Elme House
133 Long Acre
London WC2E 9DT
United Kingdom
Company No (England):  4051448

http://www.voxsurf.com/

Email disclaimer: This can be viewed at http://www.voxsurf.com/disclaimer.html 




--
*VoxSurf Limited*
Registered & principal office:
2nd Floor
Elme House
133 Long Acre
London WC2E 9DT
United Kingdom
Company No (England):  4051448

http://www.voxsurf.com/

Email disclaimer: This can be viewed at http://www.voxsurf.com/disclaimer.html 




--
*VoxSurf Limited*
Registered & principal office:
2nd Floor
Elme House
133 Long Acre
London WC2E 9DT
United Kingdom
Company No (England):  4051448

http://www.voxsurf.com/

Email disclaimer: This can be viewed at http://www.voxsurf.com/disclaimer.html 



Putting same headers and footers across multitple page sequences

2007-10-12 Thread Murali Krishna
Hi,

I have a requirement of creating some template header and footer as for 
example ,

This is the header content

and add this template to every page sequence in the region-before area.

How can i achieve this without using following redundant  code within every 
page sequence.


 This is the header content


Thanking in anticipation,
Murali Krishna
 

Adding same header and footer for multiple page sequences in XSLFO

2007-10-12 Thread Murali Krishna
Hi,
I have a requirement to have same header and footer on every page of the pdf 
output of xslfo .
Without using following redundant code in every page sequence how could i 
achieve the same effect by declaring the footer once and just refer somehow to 
that on every page sequence.

The footer is as follows:-


 
  This Text belongs to the footer part of the FO page



Thanking in anticipation,

Murali Krishna

RE: locating warnings in xsl files.

2007-10-12 Thread Winterflood, Jonathan

Hi,

Now you say it, it sounds pretty obvious...

On the other hand, the processing is done by a program that calls the FOP 
API's, not directly from files.
It looked like it was passing the xsl, but actually there is an extra layer so 
it passes the .fo.
Now I'll have to get a log of the generated .fo I guess...


AFAICT, I'm using Xalan-J 2.7, so it seems localisation has been added.

Thanks for your help,

Jonathan Winterflood

-Message d'origine-
De : Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 11 octobre 2007 16:33
À : fop-users@xmlgraphics.apache.org
Objet : Re: locating warnings in xsl files.

Depends on your XSLT processor. If you use on-the-fly XSL transformation,
the location is line 227, character 29 in one of your XSLT files. If you
feed FOP an FO file, it's line 227, character 29 in the FO file.

Last I checked Xalan-J didn't support location info, so you're probably
using a different processor.

HTH

Jeremias Maerki



On 11.10.2007 15:03:51 Winterflood, Jonathan wrote:
> 
> Hi,
> 
>  
> 
> I'm getting a few of these warnings from FOP, and I'd like to track down
> where they occur in the xsl file I'm feeding to FOP.
> 
>  
> 
>  11 oct. 2007 14:53:45
> org.apache.fop.layoutmgr.table.TableContentLayoutManager
> createElementsForRowGroup
> 
>  ATTENTION: The contents of row 3 are taller than they should be (there
> is a block-progression-dimension or height constraint on the indicated
> row). Due to its contents the row grows to 104532 millipoints, but the
> row shouldn't get any taller than MinOptMax[min=opt=max=28346]
> millipoints. (fo:table-row, location: 227/29)
> 
>  
> 
> Is there a way to name the elements in the xsl file so that FOP will
> display the names? Or could someone explain how to interpret the
> location: 227/29 info?
> 
>  
> 
> TIA,
> 
> Jonathan Winterflood 


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


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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