RE: Table of Contents problem

2003-01-24 Thread Jon Steeves
I'm not using multi-column layout or keeps, or lists, and the block IS an 
immediate child of the flow.

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Table of Contents problem


Jon Steeves wrote:
 I'm trying to generate a TOC.  The following code works up to a point - all
 the TOC items output correctly except for the last one, which won't print the
 page number at the end of the leader pattern.
 
 Does anyone know how to get that last page number to print?

Looks like one of these elusive deleted Id bugs. Are you
using a multi-column layout or keeps, or lists?
An id referred to should be on a fo:block which is not nested
in a list or table, and for best results on a block which is
an immediate child of the flow.


  (Also, does
 anyone know how to get the leader pattern to output evenly?)
There is currently no way to make it perfect, but you can improve
it a bit with a table
  fo:table table-layout=fixed widht=100%
fo:table-column column-width=proportional-column-width(5)/
fo:table-column column-width=proportional-column-width(1)/
fo:table-body
  fo:table-row
fo:table-cell
  fo:block text-align=justifyText fo:leader leader-pattern=dots/
  /fo:block
/fo:table-cell
fo:table-cell
  fo:block text-align=right
   fo:leader leader-pattern=dots/fo:page-number-citation .../
  /fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
Note: there must be a space before the leader in the first cell, and there
must not be a space between the leader in the second cell and the page number 
citation.
The leader form the second cell will probably overlap the other leader. You
might need to adjust the cell width a bit so that the dots match exactly.

J.Pietschmann


-
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]



How can I force a space in rendered output?

2003-01-24 Thread Patrick Dean Rusk
I have a need to put copyright symbols in my rendered text from time to
time, and I like to follow them with a space.  Because of some of the
transformation logic required when I do this, I can't easily ensure that an
actual space will appear in the event stream that FOP processes.  In other
words, I can't do the following:

fo:character character=#x00A9;/ fo:inline2003/fo:inline

What I'm looking for is a FO element that I can put between the
fo:character above and the fo:inline.  I thought that

fo:character character= /

would work, but it does not.

Does anyone know of an element that I can use?

Patrick Rusk


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



RE: Table of Contents problem

2003-01-24 Thread Graham Hannington
 Jon Steeves wrote:
  I'm trying to generate a TOC.  The following code works up to a point -
all
  the TOC items output correctly except for the last one, which won't
print the
  page number at the end of the leader pattern.

I have the same problem (last page number citation in a TOC does not
appear), and also this one: the last page number citation on *each page* of
a (multi-page) TOC does not appear.

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



RENDER_TXT

2003-01-24 Thread Philippe PITHON








I have a problem with
RENDER_TXT (FOP 0.20.5rc): 

error message to the line
: driver.render(input.getParser(),input.getInputSource());

java.lang.RuntimeException : java.lang.nullPointerException



all functions with that :


driver.setRenderer(Driver.RENDER_PDF);

driver.setRenderer(Driver.RENDER_PCL);



but not with :

driver.setRenderer(Driver.RENDER_TXT);



did somebody already have
this problem? 





My code :



Logger theLogger = new NullLogger();

XSLTInputHandler input = new XSLTInputHandler(new
File(xml),new File(xsl));

ByteArrayOutputStream out = new ByteArrayOutputStream();

Driver driver = new Driver();



Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();

PatternFormatter formatter = new PatternFormatter(
[%{priority}]: %{message}\n%{throwable} );

LogTarget target = null;

FileOutputStream err = new FileOutputStream(sansExtensionResultat+.log);

PrintStream errPrintStream = new PrintStream(err);

target = new StreamTarget(errPrintStream, formatter);

   

hierarchy.setDefaultLogTarget(target);

log = hierarchy.getLoggerFor(fop);

log.setPriority(Priority.INFO);



MessageHandler.setScreenLogger(theLogger);

driver.setLogger(new org.apache.avalon.framework.logger.LogKitLogger(log));


  

driver.setRenderer(Driver.RENDER_PDF);

driver.setOutputStream(out);



driver.render(input.getParser(),input.getInputSource());



byte[] content = out.toByteArray();

FileOutputStream fos = new FileOutputStream(pdf);



fos.write(content);

 








Re: How can I force a space in rendered output?

2003-01-24 Thread Paul Washinger

I use #160; and have not had any problems with this.



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



embedded vs not doc size

2003-01-24 Thread Louis . Masters
Hmmm...
I have just finished embedded Chinese characters in a document using the MS
Song font and the file comes to about 55K.  When I remove the embedding
line in userconfig, the file becomes 141K.  Can someone explain this to me?

Thanks,
-Lou


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



Border attribute in fo:region-before

2003-01-24 Thread Jean-Philippe VALENTIN

Hi,

I would like use the border attribute in fo:region-before  but it doesn't
work : is-it a bug ? how can I do else ?

fo:region-before margin-top=0cm margin-bottom=0cm extent=4cm
border-left-color=black border-left-width=1pt
border-left-style=solid
border-right-color=black border-right-width=1pt
border-right-style=solid
border-top-color=black border-top-width=1pt
border-top-style=solid
border-bottom-color=black border-bottom-width=1pt
border-bottom-style=solid/

thanks

Jean-Philippe

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



Re: Table of Contents problem

2003-01-24 Thread Clay Leeds
Jon,
Can you merely use fo:page-number-citation ref-id=endofdoc/ for the 
last item (and put fo block id=endofdoc/fo:block at the last item)?

Web Maestro Clay
Jon Steeves wrote:
I'm not using multi-column layout or keeps, or lists, and the block IS an 
immediate child of the flow.
-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Table of Contents problem
Jon Steeves wrote:
I'm trying to generate a TOC.  The following code works up to a point - all
the TOC items output correctly except for the last one, which won't print the
page number at the end of the leader pattern.
Does anyone know how to get that last page number to print?

Looks like one of these elusive deleted Id bugs. Are you
using a multi-column layout or keeps, or lists?
An id referred to should be on a fo:block which is not nested
in a list or table, and for best results on a block which is
an immediate child of the flow.

(Also, does
anyone know how to get the leader pattern to output evenly?)
There is currently no way to make it perfect, but you can improve
it a bit with a table
  fo:table table-layout=fixed widht=100%
fo:table-column column-width=proportional-column-width(5)/
fo:table-column column-width=proportional-column-width(1)/
fo:table-body
  fo:table-row
fo:table-cell
  fo:block text-align=justifyText fo:leader leader-pattern=dots/
  /fo:block
/fo:table-cell
fo:table-cell
  fo:block text-align=right
   fo:leader leader-pattern=dots/fo:page-number-citation .../
  /fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
Note: there must be a space before the leader in the first cell, and there
must not be a space between the leader in the second cell and the page number 
citation.
The leader form the second cell will probably overlap the other leader. You
might need to adjust the cell width a bit so that the dots match exactly.

J.Pietschmann

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Driver API

2003-01-24 Thread Peter Menzel
Hi

Where can I find a (javadoc) API for the fop Driver class ?

Peter
-- 

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



Re: NoClassDefFoundError (...PlanarImage)

2003-01-24 Thread Clay Leeds
Stefan,
Stefan Seefeld wrote:
hi there,
I'm trying to use fop to convert a docbook document to pdf.
I successfully generated a 'book.fo' file, and am now running
the command
fop.sh book.fo book.pdf
I believe that should be:
   fop.sh -fo book.fo -pdf book.pdf
resulting in the error:
Exception in thread main java.lang.NoClassDefFoundError:
javax/media/jai/PlanarImage
what library is this class supposed to be in ? What am I
missing ?
My documents include figures in png and or pdf formats.
Both formats should be supported by fop, shouldn't they ?
They are supported, but to process with a PNG file, you need JIMI. From 
the first paragraph on http://xml.apache.org/fop/

  Output formats (http://xml.apache.org/fop/output.html) currently
  supported are PDF, PCL, PS, SVG, XML (area tree representation),
  Print, AWT, MIF and TXT. The primary output target is PDF.
and on the FAQ:
http://xml.apache.org/fop/faq.html
the 3rd issue under Common Stumbling blocks:
http://xml.apache.org/fop/faq.html#faq-N100D9
My PNG images don't work.
The Jimi image library, which is by default used for processing images 
in PNG and other formats, was removed from the distribution for 
licensing reasons. You have to download (http://java.sun.com) and 
install it by yourself.

Here's the link to start the download process:
http://java.sun.com/products/jimi/
Thanks a lot !
Stefan
Good luck!
Web Maestro Clay
--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


differenct space needed for different letters?

2003-01-24 Thread dongjiang tang



Hi, I have mutiple line of text in one block in the 
header for my page, I make each line the exactly same number of letters(same 
string length), then I found out that the actual space each line takes is not 
the same, some are longer and some are shorter, just like below. Is there any 
way to make each line appears to be the same 'actual length' ?

start of line ccc
c
ccend of line
dongjiang


RE: differenct space needed for different letters?

2003-01-24 Thread robert_hitchins
Yes...you need to used a fixed width font (like Courier) as opposed to 
a proportional font (like Times New Roman).
 
Proportional fonts base the distance between letters on the actual 
width of the letter (e.g. w is wider than i so it gets more space). 
 Fixed width fonts assign the same width to all letters.
 
Bob Hitchins
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, January 24, 2003 1:24 PM
To: [EMAIL PROTECTED]
Subject: differenct space needed for different letters?



Hi, I have mutiple line of text in one block in the header for my page, 
I make each line the exactly same number of letters(same string 
length), then I found out that the actual space each line takes is not 
the same, some are longer and some are shorter, just like below. Is 
there any way to make each line appears to be the same 'actual length' ?
 
start of line ccc
c
ccend of line

dongjiang



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



Re: Fonts with multiple bold levels

2003-01-24 Thread Christian Geisert
Evraire, Jonathan wrote:
Hi,
  I need to provide my client with a sample of the different levels of bold
achievable with xslfo.  To do so, I created a very simple table, each row
having a different font-weight ranging from 100 to 900.  Unfortunately, I
only ever see two different bold levels (basically normal and bold).  This
property is listed as implemented in FOP, so I'm assuming the problem lies
in the different fonts I've tried.
AFAIK there's only one bold implemented (docs should be updated)
Christian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: NoClassDefFoundError (...PlanarImage)

2003-01-24 Thread Christian Geisert
Stefan Seefeld wrote:
[..]
My documents include figures in png and or pdf formats.
Both formats should be supported by fop, shouldn't they ?
For PNGs you need to install Jimi or JAI (see release notes!).
PDF figures don't work - you could use SVG instead.
Christian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: NoClassDefFoundError (...PlanarImage)

2003-01-24 Thread Stefan Seefeld
Christian Geisert wrote:
Stefan Seefeld wrote:
[..]
My documents include figures in png and or pdf formats.
Both formats should be supported by fop, shouldn't they ?

For PNGs you need to install Jimi or JAI (see release notes!).
sorry to have missed that.
PDF figures don't work - you could use SVG instead.
great ! By the way, is there a way to specify paths to use to lookup
images ? Or do I need to instruct my fo generating stylesheet to
embedd the svg directly ? (right now I have external 'svg' figures)
Stefan

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


extra page breaks inserted

2003-01-24 Thread Chris McCann

Hello all,

I'm getting weird behavior in fop 0.20.5rc that didn't happen in
0.20.4.

What I've got is multiple page-sequences in a .fo file with page
numbering being reset in between.  In .20.5rc I get extra blank pages
inserted in between page sequences.  In .20.4 it worked as I expected no
black pages.

Anybody got any ideas in what it happening?

Thanks,

Chris

-- 
==
There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence.
- Jeremy S. Anderson
Chris McCann  
[EMAIL PROTECTED]

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



SVG and Image Caching - Page Fore-/Backgrounds - Transparency

2003-01-24 Thread J.U. Anderegg
A couple of new functions to FOP's PDF rendering:

o SVG's and images as page fore-/backgrounds with transparency control
o SVG rendering as image
o Image resolution control by the user
o Caching on the PDF way: store/write a resource once - reuse it
o Open Actions

These add-ons are programmed as instream-foreign-object's by FOP extensions
and by adding code to the PDF renderer. They are outside of XSL-FO standards
and fully compatible with the present FOP.

Tested with: FOP 0.20.4, Java 1.4 and 1.3.1, Batik 1.5

Download: http://mypage.bluewin.ch/huanderegg

Hansuli Anderegg

==

o General structure of instream-foreign-object's

 fo:instream-foreign-object
 anyext:anyext
anyext:extension_element .
 /anyext:anyext
/fo:instream-foreign-object

(FOP seems to require anyext:anyext-elements. Who knows why?)

==

FOREGROUNDS AND BACKGROUNDS

o Specifying an SVG resource

 anyext:svg_resource name=name src=url height=points
imageResolution=dpi PDFfonts=yes/

- name: to reference a resource
- url:  of an (external) SVG or image file
- height: controls the presentation size of the resource. The viewbox of the
SVG is transformed to the given height with a proportionally sized width.
- points: all measurement are in points = inch/72
- imageResolution=dpi: if present, a JPEG image is created with the asked
resolution
- PDFfonts=yes: if present, PDF fonts are used - otherwise text is drawn
by graphics
_

o Specifying a JPEG image resource

 anyext:image_resource name=name src=url
 widthPix=pixels heightPix=pixels width=points height=points/

- widthPix, heightPix: image size in pixels
_

o Specifying page foregrounds, backgrounds

 anyext:form
first=nameReference,pointsX,pointsY,background|foreground,transparency

odd=nameReference,pointsX,pointsY,background|foreground,transparency

even=nameReference,pointsX,pointsY,background|foreground,transparency
/

- first, odd, even: use resource specified by nameReference for first, odd
or even document pages
- background or foreground: resource is to be presented either in
background or foreground layer
- pointsX,pointsY: top/left corner page coordinates of background/foreground
- transparency: constant alpha with defined values 0.25 or 0.5 or 0.75
or 1.0 (alpha blending simulates the opacity of celluloid layers: 1.0
indicates an opaque pixel, 0.0 indicates a transparent pixel )
_

o Resetting page foregrounds and backgrounds by setting nameReference to
null

 anyext:form
first=null,pointsX,pointsY,background|foreground,transparency
odd=null,pointsX,pointsY,background|foreground,transparency
even=null,pointsX,pointsY,background|foreground,transparency /

_

o Rendering an SVG as image

fo:instream-foreign-object height=points
anyext:anyextanyext:svg_put src=url
imageResolution=dpi//anyext:anyext
/fo:instream-foreign-object

- height: required, so that FOP allocates the space
- imageResolution: resolution control
-- current position(x,y) calculated by FOP formatting

==

VARIOUS EXTENSIONS

o Specifying a startup AcroScript

 anyext:anyextanyext:openactionapp.beep(0); this.zoom =
200;/anyext:openaction/anyext:anyext

Enter any suitable AcroScript statements to set startup options,
preferences, menues etc. in the tag text,
_

o Turning on debugging messages

 anyext:anyextanyext:debug//anyext:anyext

_

o and who programs?

 anyext:bookmark level=nbookmark text/anyext:bookmark

 anyext:bar3of9 position=50,100 rotation=270 height=24 modwidth=12
ration=2.5 asterisk=yes checksum=yes text=below
barcode data/anyext:bar3of9



SAMPLE INPUT

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

fo:block
fo:instream-foreign-object
anyext:anyextanyext:debug//anyext:anyext
/fo:instream-foreign-object

fo:instream-foreign-object
anyext:anyextanyext:openactionapp.beep(0); this.zoom =
200;/anyext:openaction/anyext:anyext
/fo:instream-foreign-object

fo:instream-foreign-object
anyext:anyextanyext:svg_resource name=svg01
src=file:///C:/fop-0.20.4rc/AnyExtensions/batik01.svg
height=80 imageResolution=96//anyext:anyext
/fo:instream-foreign-object
fo:instream-foreign-object
anyext:anyextanyext:svg_resource name=svg02
src=file:///C:/fop-0.20.4rc/AnyExtensions/batik02.svg
height=250//anyext:anyext
/fo:instream-foreign-object
fo:instream-foreign-object

Howto make tables...

2003-01-24 Thread Jacob Bager
Hi ...

I know this is a very stupid question, but after browsing the net for a
tutorial,
Working for me, with NO luck at all. I have to ask here.

This it what i wanna do..

 (Im using the xsl:fo on a tomcat/cocoon installation., Just for a
notice.)

I have created an XML.file located at
http://approveone.phaseone.com/pdf/20030124210359.xml ,
To make it easy for me too, print to a pdf. I created it like so
 -document
   -page
-table
 -row
  -cell
  -cell
  -cell
 -/row
Etc. A table with 3x3, with page breaks foreach page.

Every cell contains a href to an image, and text for that picture.

Every time i try, putting it through for .pdf i get 'The file is
damaged'.

Can anyone help me?

Im quiet desperat.

Thanx in advanced.
Jacob Bager
Denmark.



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



Re: Re: German characters

2003-01-24 Thread abdolah
thnks for your reply

i use the default encoding for XML to generate this files:
?xml version=1.0 encoding=iso-8859-1?.
and default fo.xsl header:

?xml version='1.0'?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:template match=/



To generate this files i use a smal programm which operate on vms operation 
systems.
any other idee?



- original Nachricht 



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

With what editor did you generate the file?
In what encoding did you safe the file?
XML files use something like UTF-8 or UTF-16 per default.
So if you simply edited them using wordpad or notepad (since you talk of ie I 
assume you use that  from  *), they are saved in Windows CP-1252 
which is a derivate of ISO-8859-1, not compatible with the default encodings 
of XML and therefore must be declared like ?xml version=1.0 
encoding=iso-8859-1?.
And remember, there may not be any characters before the XML Declaration.

Am Donnerstag, 23. Januar 2003 21:43 schrieb [EMAIL PROTECTED]:
 I generate with FOp o.20.4rc from xsl and xml files PDFs.
 My xsl file containt some  German characters like ���When i run FOP i 
 get 
 this ERROR:

 [INFO] FOP 0.20.4rc
 [Fatal Error] myxslfile.xsl:2:6: The processing instruction target matching
 [xX][mM][lL] is not allowed. [ERROR] null



 (i get an Error from iexplorer 6.0 too when i open this xsl file with
 iexplorer because of this German characters )

 I use at the head of my xsl file this header:

 ?xml version='1.0'?
 xsl:stylesheet version=1.0
 xmlns:xsl=a href='http://www.w3.org/1999/XSL/Transform' 
 target='_blank'uhttp://www.w3.org/1999/XSL/Transform/u/a
 xmlns:fo=a href='http://www.w3.org/1999/XSL/Format' 
 target='_blank'uhttp://www.w3.org/1999/XSL/Format/u/a xsl:template 
 match=/



 does  somebody know the Solution!


 amad

- -- 
ITCQIS GmbH
Christian Wolfgang Hujer
Geschäftsführender Gesellschafter
Telefon: +49  (0)89  27 37 04 37
Telefax: +49  (0)89  27 37 04 39
E-Mail: [EMAIL PROTECTED]
WWW: a href='http://www.itcqis.com' 
target='_blank'uhttp://www.itcqis.com/u/a/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+MFxAzu6h7O/MKZkRAtF4AJ956slJxpS5fu4kzIPfAN6NlcRT3QCdFMtV
4hQ0zmMW5fQcsle/ZSSCEWA=
=fkk2
-END PGP SIGNATURE-



--- original Nachricht Ende 



-- 
freenet Email-Office: 
E-Mail, Kalender und 30 MB virtuelle Festplatte. 
Jetzt testen unter www.freenet.de/tipp/emo

RE: extra page breaks inserted

2003-01-24 Thread Patrick Dean Rusk
Chris,

If you have multiple page sequences, and you restart the page numbering in
each one, you may get blank pages inserted if you don't pay attention to the
force-page-count property of page sequences.

Here's a section from Pawson that describes it:

 cut here 
The force-page-count property imposes a condition on the number of pages in
a page sequence. This number may be an absolute count, or a parity
condition. For each condition, if the condition is not satisfied, the action
taken is to add one page to the current page sequence. The values of the
property, and the proper interpretation of same, are listed below:

force-page-count

auto
The action taken depends on the existence of a succeeding page sequence, and
the value of its initial-page-number property. If there is a succeeding page
sequence, and an even initial-page-number is explicitly specified on it,
then the current page sequence is forced to have an odd number of pages. If
there is a succeeding page sequence, and an odd initial-page-number is
explicitly specified on it, then the current page sequence is forced to have
an even number of pages.

even
Force an even page-count for the page sequence.

odd
Force an odd page-count for the page sequence.

end-on-even
Force the last page to have an even page number.

end-on-odd
Force the last page to have an odd page number.

no-force
Do not force any page count.

Tip
Note that the default value is auto. This may cause action to be taken.
 cut here 

In brief, page sequences default to force-page-count=auto.  This forces a
sequence to have an even number of pages if the following sequence wants to
start on an odd page.  If it needs to insert a blank page to cause this, it
will.

To stop this, set force-page-count=no-force on your page sequences.

Just had to do this myself for the first time about an hour ago.  Timely,
huh?

Patrick Rusk

P.S. I don't know that this has necessarily changed at all since 0.20.4.
It's worked that way in the latest CVS source for at least three months, as
long as I've been using FOP.


-Original Message-
From: Chris McCann [mailto:[EMAIL PROTECTED]
Sent: Friday, January 24, 2003 2:09 PM
To: [EMAIL PROTECTED]
Subject: extra page breaks inserted

Hello all,

I'm getting weird behavior in fop 0.20.5rc that didn't happen in
0.20.4.

What I've got is multiple page-sequences in a .fo file with page
numbering being reset in between.  In .20.5rc I get extra blank pages
inserted in between page sequences.  In .20.4 it worked as I expected no
black pages.

Anybody got any ideas in what it happening?


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



Re: Howto make tables...

2003-01-24 Thread Clay Leeds
Jacob,
Jacob Bager wrote:
Hi ...
I know this is a very stupid question, but after browsing the net for a
tutorial, Working for me, with NO luck at all. I have to ask here.
This it what i wanna do..
(Im using the xsl:fo on a tomcat/cocoon installation., Just for a notice.)
I have created an XML.file located at
http://approveone.phaseone.com/pdf/20030124210359.xml ,
To make it easy for me too, print to a pdf. I created it like so
 -document
   -page
-table
 -row
  -cell
  -cell
  -cell
 -/row
Etc. A table with 3x3, with page breaks foreach page.
You'll have to figure out the rest, but here's more of a start than I 
got. Hope this helps!

Web Maestro Clay
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns:fo=http://www.w3.org/1999/XSL/Format;
  xsl:template match=/
xsl:apply-templates select=doc/
  /xsl:template
  xsl:template match=doc
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  !--  defines page layout --
  fo:layout-master-set
fo:simple-page-master master-name=repeating 
page-height=28cm page-width=22cm margin-top=1cm 
margin-bottom=1.3cm margin-left=1cm margin-right=1cm
  fo:region-body margin-bottom=6.5cm margin-top=7.6cm/
  fo:region-before extent=7.6cm/
  fo:region-after extent=6.5cm/
/fo:simple-page-master
fo:page-sequence-master master-name=repeating_pm
  fo:repeatable-page-master-reference master-name=repeating/
/fo:page-sequence-master
  /fo:layout-master-set
  !-- DEFINE PAGE SEQUENCE - repeating --
  fo:page-sequence master-reference=repeating
fo:static-content flow-name=xsl-region-before
  fo:block padding=0pt xsl:use-attribute-sets=attNormal
xsl:call-template name=tmpHeader/
  /fo:block
/fo:static-content
fo:static-content flow-name=xsl-region-after
  fo:block xsl:use-attribute-sets=attNormal
xsl:call-template name=tmpFooter/
  /fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
  fo:block
xsl:call-template name=tmpBody/
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root
  /xsl:template
  !-- REGION-BEFORE: tmpHeader TEMPLATE --
  xsl:template name=tmpHeader
fo:block padding=0pt
  !-- REGION-BEFORE (Header) CONTENT --
/fo:block
  /xsl:template
  !-- REGION-AFTER: tmpFooter TEMPLATE --
  xsl:template name=tmpFooter
fo:block padding=0pt
  !-- REGION-AFTER (Footer) CONTENT --
/fo:block
  /xsl:template
  !-- REGION-BODY: tmpBody TEMPLATE --
  xsl:template name=tmpBody
fo:block padding=0pt
  !-- REGION-BODY (Body) CONTENT --
xsl:call-template name=tmpTable/
/fo:block
  /xsl:template
  xsl:template name=tmpTable
fo:block padding=0pt
  fo:table border=0pt table-layout=fixed margin-top=4pt
fo:table-column column-width=5cm/
fo:table-column column-width=5cm/
fo:table-column column-width=5cm/
fo:table-body
  fo:table-row
fo:table-cell padding=1pt
  fo:block keep-with-next.within-page=always
Cell 1
  /fo:block
/fo:table-cell
fo:table-cell padding=1pt
  fo:block keep-with-next.within-page=always
Cell 2
  /fo:block
/fo:table-cell
fo:table-cell padding=1pt
  fo:block keep-with-next.within-page=always
Cell 3
  /fo:block
/fo:table-cell
  /fo:table-row
  fo:table-row
fo:table-cell padding=1pt
  fo:block keep-with-next.within-page=always
Cell 1
  /fo:block
/fo:table-cell
fo:table-cell padding=1pt
  fo:block keep-with-next.within-page=always
Cell 2
  /fo:block
/fo:table-cell
fo:table-cell padding=1pt
  fo:block keep-with-next.within-page=always
Cell 3
  /fo:block
/fo:table-cell
  /fo:table-row
  fo:table-row
fo:table-cell padding=1pt
  fo:block keep-with-next.within-page=always
Cell 1
  /fo:block
/fo:table-cell
fo:table-cell padding=1pt
  fo:block keep-with-next.within-page=always
Cell 2
  /fo:block
/fo:table-cell
fo:table-cell padding=1pt
  fo:block keep-with-next.within-page=always
Cell 3
  /fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
/fo:block
  /xsl:template
/xsl:stylesheet

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc

Re: German characters

2003-01-24 Thread Herr Christian Wolfgang Hujer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Am Freitag, 24. Januar 2003 21:44 schrieb [EMAIL PROTECTED]:
 thnks for your reply

 i use the default encoding for XML to generate this files:
 ?xml version=1.0 encoding=iso-8859-1?.
 and default fo.xsl header:

 ?xml version='1.0'?
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:template match=/

I don't see a source of problem.
I think your tools get it wrong.
Or do you modify the generated fo afterwards before displaying in the browser?

Bye
- -- 
ITCQIS GmbH
Christian Wolfgang Hujer
Geschftsfhrender Gesellschafter
Telefon: +49  (0)89  27 37 04 37
Telefax: +49  (0)89  27 37 04 39
E-Mail: [EMAIL PROTECTED]
WWW: http://www.itcqis.com/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+MbHKzu6h7O/MKZkRApKmAJ973GUyb7Uu2nMLvRUfxIY3tK0+/wCeIaYo
7dB+EohlXiSPmYkJIhE6D9o=
=YWuU
-END PGP SIGNATURE-


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



Re: extra page breaks inserted

2003-01-24 Thread Chris McCann

Patrick,

Thanks for the great answer!  It make sense to me now why it works this
way.  Again thanks.

Chris

Patrick Dean Rusk([EMAIL PROTECTED])@Fri, Jan 24, 2003 at 03:49:24PM -0500:
 Chris,
 
 If you have multiple page sequences, and you restart the page numbering in
 each one, you may get blank pages inserted if you don't pay attention to the
 force-page-count property of page sequences.
 
 Here's a section from Pawson that describes it:
snip
 To stop this, set force-page-count=no-force on your page sequences.



-- 
==
There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence.
- Jeremy S. Anderson
Chris McCann  
[EMAIL PROTECTED]

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



RE: Howto make tables...

2003-01-24 Thread Jacob Bager
Thanx a bunch.

It's late i'll have a look at it tomorrow.


-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: 24. januar 2003 22:29
To: [EMAIL PROTECTED]
Subject: Re: Howto make tables...


Jacob,

Jacob Bager wrote:
 Hi ...
 
 I know this is a very stupid question, but after browsing the net for 
 a tutorial, Working for me, with NO luck at all. I have to ask here.
 
 This it what i wanna do..
 
 (Im using the xsl:fo on a tomcat/cocoon installation., Just for a 
 notice.)
 
 I have created an XML.file located at 
 http://approveone.phaseone.com/pdf/20030124210359.xml , To make it 
 easy for me too, print to a pdf. I created it like so  -document
-page
 -table
  -row
   -cell
   -cell
   -cell
  -/row
 Etc. A table with 3x3, with page breaks foreach page.

You'll have to figure out the rest, but here's more of a start than I 
got. Hope this helps!

Web Maestro Clay

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns:fo=http://www.w3.org/1999/XSL/Format;
   xsl:template match=/
 xsl:apply-templates select=doc/
   /xsl:template
   xsl:template match=doc
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   !--  defines page layout --
   fo:layout-master-set
 fo:simple-page-master master-name=repeating 
page-height=28cm page-width=22cm margin-top=1cm 
margin-bottom=1.3cm margin-left=1cm margin-right=1cm
   fo:region-body margin-bottom=6.5cm margin-top=7.6cm/
   fo:region-before extent=7.6cm/
   fo:region-after extent=6.5cm/
 /fo:simple-page-master
 fo:page-sequence-master master-name=repeating_pm
   fo:repeatable-page-master-reference
master-name=repeating/
 /fo:page-sequence-master
   /fo:layout-master-set
   !-- DEFINE PAGE SEQUENCE - repeating --
   fo:page-sequence master-reference=repeating
 fo:static-content flow-name=xsl-region-before
   fo:block padding=0pt xsl:use-attribute-sets=attNormal
 xsl:call-template name=tmpHeader/
   /fo:block
 /fo:static-content
 fo:static-content flow-name=xsl-region-after
   fo:block xsl:use-attribute-sets=attNormal
 xsl:call-template name=tmpFooter/
   /fo:block
 /fo:static-content
 fo:flow flow-name=xsl-region-body
   fo:block
 xsl:call-template name=tmpBody/
   /fo:block
 /fo:flow
   /fo:page-sequence
 /fo:root
   /xsl:template
   !-- REGION-BEFORE: tmpHeader TEMPLATE --
   xsl:template name=tmpHeader
 fo:block padding=0pt
   !-- REGION-BEFORE (Header) CONTENT --
 /fo:block
   /xsl:template
   !-- REGION-AFTER: tmpFooter TEMPLATE --
   xsl:template name=tmpFooter
 fo:block padding=0pt
   !-- REGION-AFTER (Footer) CONTENT --
 /fo:block
   /xsl:template
   !-- REGION-BODY: tmpBody TEMPLATE --
   xsl:template name=tmpBody
 fo:block padding=0pt
   !-- REGION-BODY (Body) CONTENT --
 xsl:call-template name=tmpTable/
 /fo:block
   /xsl:template
   xsl:template name=tmpTable
 fo:block padding=0pt
   fo:table border=0pt table-layout=fixed margin-top=4pt
 fo:table-column column-width=5cm/
 fo:table-column column-width=5cm/
 fo:table-column column-width=5cm/
 fo:table-body
   fo:table-row
 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
 Cell 1
   /fo:block
 /fo:table-cell
 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
 Cell 2
   /fo:block
 /fo:table-cell
 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
 Cell 3
   /fo:block
 /fo:table-cell
   /fo:table-row
   fo:table-row
 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
 Cell 1
   /fo:block
 /fo:table-cell
 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
 Cell 2
   /fo:block
 /fo:table-cell
 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
 Cell 3
   /fo:block
 /fo:table-cell
   /fo:table-row
   fo:table-row
 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
 Cell 1
   /fo:block
 /fo:table-cell
 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
 Cell 2
   /fo:block
 /fo:table-cell
 fo:table-cell padding=1pt
   fo:block 

Re: How can I force a space in rendered output?

2003-01-24 Thread J.Pietschmann
Patrick Dean Rusk wrote:
It doesn't work in the sense that the result of using the
fo:character character= 
is visually indistinguishable from leaving it out.
Ah, yes there is indeed a bug there:
LineArea.java
public int addCharacter(char data, LinkSet ls, boolean ul) {
...
// if whitespace-collapse == true, discard character
if (Character.isSpaceChar(data)
 whiteSpaceCollapse == WhiteSpaceCollapse.TRUE) {
return org.apache.fop.fo.flow.Character.OK;
}
Bad idea... (should use addText, which also handles text decoration,
links and other stuff)
fo:block font-family=serif font-size=8pt
fo:character character=C/
xsl:value-of select=./
/fo:block
[snip]
Note the three blocks above.  If I had to look at that and guess for 
each
whether there would be a space after the C, I would say the following:
1) Don't know.  Depends upon whether the new line is collapsed into a space.
2) I would give a higher probability of there being a space after the C,
because of the explicit extra spaces put in.
Well it pays off to learn the details of the tools you
are using. In this case, its XSLT's whitespace handling
in style sheets, well specified in
 file:///C:/cygwin/home/pietsch/dnload/REC-xslt-19991116.html#strip
If you need whitespace in the transformation result,
use something like
  xsl:text /xsl:text
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: inserting jpg into pdf

2003-01-24 Thread J.Pietschmann
Matthew L. Avizinis wrote:
I have the jimi-1.0.jar in the FOP lib folder but I still get the following
odd exception.
...
[ERROR] Could not load external SVG: White spaces are required between
publicId and systemId.
...
//home.teamgleim.com/~mla/UGCDb/Aviation/FIRC2/Image/Figure4_2.jpg)
I guess your web server returns an error page for the URL above.
Check by pointing ordinary browser to the URL.
J.Pietschmann

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


Re: Border attribute in fo:region-before

2003-01-24 Thread J.Pietschmann
Jean-Philippe VALENTIN wrote:
I would like use the border attribute in fo:region-before  but it doesn't
work : is-it a bug ? how can I do else ?
Actually this is required by the spec:
   http://www.w3.org/TR/xsl/slice6.html#fo_region-body
 In version 1.0 of this Recommendation, the values of the padding and
  border-width traits must be 0.
Some processors allow borders to be defined on regions.
You can work around this restriction for static content
by putting everything in an appropriately sized
block-container and define the border there. Another
alternative is to use a background image (requires
FOP 0.20.5)
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: NoClassDefFoundError (...PlanarImage)

2003-01-24 Thread J.Pietschmann
Stefan Seefeld wrote:
great ! By the way, is there a way to specify paths to use to lookup
images ?
Do you mean this question?
  http://xml.apache.org/fop/faq.html#faq-N101CD
Or do I need to instruct my fo generating stylesheet to
embedd the svg directly ?
Search for fo:instream-foreign-object on
  http://xml.apache.org/fop/svg.html
There are also examples in the distribution.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Howto make tables...

2003-01-24 Thread J.Pietschmann
Jacob Bager wrote:
 (Im using the xsl:fo on a tomcat/cocoon installation., Just for a
notice.)
...
Every time i try, putting it through for .pdf i get 'The file is
damaged'.
Most likely there is a problem with the FO. One cause
often seen with tables is a missing table body element.
Look into the cocoon logs for exceptions and error
messages.
You should develop everything with the FOP command line
application, perhaps using the -d flag, in order to get
error messages more conveniently.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Border attribute in fo:region-before

2003-01-24 Thread Oleg Tkachenko
Jean-Philippe VALENTIN wrote:
I would like use the border attribute in fo:region-before  but it doesn't
work : is-it a bug ? how can I do else ?
That's not a bug, but XSL Recommendation conformant behaviour. In XSL 
1.0 regions cannot have padding and border:
In version 1.0 of this Recommendation, the values of the padding and 
border-width traits must be 0. [1]

[1] http://www.w3.org/TR/xsl/slice6.html#fo_region-before
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Howto make tables...

2003-01-24 Thread Jacob Bager
Your right J.

It was missing the table-body element.

I have experimented with the xsl. Clay Leeds provided, its
Working. But i havn't managed to get any data in from the xml-file.
I tried this :

 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
 xsl:template match=IMAGEINFO
fo:block font-size=10px font-style=italic
text-align=center
   xsl:apply-templates/
  /fo:block
 /xsl:template   
   /fo:block
 /fo:table-cell

Have i totaly misunderstood something here, or shouldn't it work?

Jacob Bager
Denmark

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: 25. januar 2003 00:07
To: [EMAIL PROTECTED]
Subject: Re: Howto make tables...


Jacob Bager wrote:
  (Im using the xsl:fo on a tomcat/cocoon installation., Just for a
 notice.)
...
 Every time i try, putting it through for .pdf i get 'The file is 
 damaged'.

Most likely there is a problem with the FO. One cause
often seen with tables is a missing table body element.
Look into the cocoon logs for exceptions and error
messages.
You should develop everything with the FOP command line application,
perhaps using the -d flag, in order to get error messages more
conveniently.

J.Pietschmann


-
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: Howto make tables...

2003-01-24 Thread Clay Leeds
Jacob Bager wrote:
Your right J.
It was missing the table-body element.
I have experimented with the xsl. Clay Leeds provided, its
Working. But i havn't managed to get any data in from the xml-file.
I tried this :
 fo:table-cell padding=1pt
   fo:block keep-with-next.within-page=always
		 xsl:template match=IMAGEINFO
		fo:block font-size=10px font-style=italic
text-align=center
	   xsl:apply-templates/
		  /fo:block
		 /xsl:template   
   /fo:block
 /fo:table-cell

Have i totaly misunderstood something here, or shouldn't it work?
Jacob Bager
Denmark
It would help to see your template IMAGEINFO to get an idea of what's 
going wrong here.

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Howto make tables...

2003-01-24 Thread Jacob Bager
Err...

I thougt the template match=IMAGEINFO was the template?

The IMAGEINFO is tag in the .XML, like IMAGEINFOfoo.bar/IMAGEINFO
I want to write foo.bar i the fo:table-cell 

Jacob



-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: 25. januar 2003 00:39
To: [EMAIL PROTECTED]
Subject: Re: Howto make tables...


Jacob Bager wrote:
 Your right J.
 
 It was missing the table-body element.
 
 I have experimented with the xsl. Clay Leeds provided, its Working. 
 But i havn't managed to get any data in from the xml-file. I tried 
 this :
 
  fo:table-cell padding=1pt
fo:block keep-with-next.within-page=always
xsl:template match=IMAGEINFO
   fo:block font-size=10px font-style=italic 
 text-align=center
  xsl:apply-templates/
 /fo:block
/xsl:template   
/fo:block
  /fo:table-cell
 
 Have i totaly misunderstood something here, or shouldn't it work?
 
 Jacob Bager
 Denmark

It would help to see your template IMAGEINFO to get an idea of what's 
going wrong here.

-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


-
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]