RE: Some seemingly simple Formatting Questions

2002-06-26 Thread Hahn Kurt (CHA)
I'm actually having the same problems with the keep-with-next property, it
just doesn't seem to have ANY effect at all (I tried using it on table
rows). There have been some discussions here about this topic, and I think
that some people stated that it works, but I still couldn't figure out how
they did it... One workaround is to use table-headers, depending on your
document structure, you might wanna use this.

Kurt
-Message d'origine-
De : Markus Wiese [mailto:[EMAIL PROTECTED]
Envoyé : mercredi, 26. juin 2002 10:40
À : [EMAIL PROTECTED]
Objet : Re: Some seemingly simple Formatting Questions


Hi Paul,

1. Try putting your margin-top in your fo:simple-page-master
2. afaik markers aren't supported yet.
3. try using something like:
fo:block line-height=3pt
fo:leader leader-pattern=rule leader-length=150mm
rule-thickness=1pt color=#99/
/fo:block
4. I had to fiddle a lot with preventing page-breaks,
   you will have to use the workarounds (using table-cells/
keep-together=always)
   or wait for the major redesign, I reckon. Please correct, if I'm wrong.

markus

-Ursprüngliche Nachricht-
Von: Thibodeaux, Paul [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Mittwoch, 26. Juni 2002 02:25
Betreff: Some seemingly simple Formatting Questions


I'm relatively new to using FOP.  I've got a document working fairly well,
but am having a difficult time doing a few things that I would have thought
to be simple.

1.  Cannot set the TOP MARGIN of a xsl-region-before.
Setting it to anything is ignored and the data is always printed at the
very
top of the page.

 fo:static-content flow-name=xsl-region-before
 margin-top=2cm margin-left=2cm
margin-right=2cm 

2. Cannot set the FONT of a fo:retrieve-marker used in a
xsl-region-before.
It seems to ignore my font setting and always print the same size.
fo:block keep-together=auto font-size=8pt
   fo:retrieve-marker
retrieve-class-name=mrkState
retrieve-boundary=page
retrieve-position=first-starting-within-page/
/fo:block

3. Cannot set the height of a fo:leader to a small amount.
The output is always preceeded by more white space than is desired.

 fo:block
 fo:leader leader-pattern=rule space-after.optimum=4pt
 space-before=0pt line-height=1pt/
 /fo:block

4. Problem using keep-with-next across page and column breaks of
multi-column  pages.
Thanks to Chuck Paussa, I made great headway on better controlling KEEPS in
a multi-column document by putting the data in TABLE CELLS.  The
KEEP-TOGETHER seems to work fine within TABLE cells;  however, the
KEEP-WITH
NEXT does not appear to work.

Any insights on this would be greatly appreciated.

Thanks,
Paul Thibodeaux






keep-with-.. property

2002-06-25 Thread Hahn Kurt (CHA)
I've read a lot in the archives about the different keep-with property; what
I understood is that some of them are not implemented yet, but that
keep-with-next should work on table rows. Is there another reason why my
example here doesn't keep the rows together?



- fo:table-row keep-with-next=always font-weight=bold font-size=10pt
- fo:table-cell
- fo:block
- fo:table font-size=10pt border-style=solid
  fo:table-column column-width=1.2cm / 
  fo:table-column column-width=15.8cm / 
- fo:table-body
- fo:table-row
- fo:table-cell
  fo:block10/fo:block 
  /fo:table-cell
- fo:table-cell
  fo:blockRAPPORTS DE LA COMMISSION DE GRACE/fo:block 
  /fo:table-cell
  /fo:table-row
- fo:table-row font-weight=normal
  fo:table-cell / 
- fo:table-cell
  fo:block / 
  /fo:table-cell
  /fo:table-row
  /fo:table-body
  /fo:table
  /fo:block
  /fo:table-cell
  /fo:table-row
  fo:table-row keep-with-next=always height=30pt / 
  !-- 
I'm trying to avoid a page-break here, but no
success so far...

--
- fo:table-row font-weight=bold font-size=10pt
- fo:table-cell
- fo:block
- fo:table font-size=10pt border-style=none
  fo:table-column column-width=1.2cm / 
  fo:table-column column-width=2.3cm / 
  fo:table-column column-width=13.5cm / 
- fo:table-body
- fo:table-row
  fo:table-cell / 
  fo:table-cell / 
- fo:table-cell text-align=left
  fo:block7 rapports, préavis adoptés./fo:block 
  /fo:table-cell
  /fo:table-row
- fo:table-row
  fo:table-cell / 
  fo:table-cell / 
- fo:table-cell text-align=left
  fo:block / 
  /fo:table-cell
  /fo:table-row
  /fo:table-body
  /fo:table
  /fo:block
  /fo:table-cell
  /fo:table-row


RE: keep-with-.. property

2002-06-25 Thread Hahn Kurt (CHA)
I'm using the same FOP version. If I look at the following code snippet,
this table row should never stand alone at the end of a page, but this is
exactly what happens (and not only once, but in many places over the entire
document. I assume that the property doesn't work in every case, but is
there any other way/solution?

Kurt


- fo:table-row keep-together=always keep-with-next=always height=30pt
font-weight=bold font-size=10pt
- fo:table-cell
- fo:block
- fo:table font-size=10pt border-style=none
  fo:table-column column-width=1.2cm / 
  fo:table-column column-width=15.8cm / 
- fo:table-body
- fo:table-row
- fo:table-cell
  fo:block / 
  /fo:table-cell
- fo:table-cell
  fo:blockJUSTICE, POLICE ET SECURITE* (DJPS)/fo:block 
  /fo:table-cell
  /fo:table-row
- fo:table-row font-weight=normal
  fo:table-cell / 
- fo:table-cell
  fo:block(Titulaire: Mme Spoerri Micheline; suppléant: M. Laurent
Moutinot)/fo:block 
  /fo:table-cell
  /fo:table-row
  /fo:table-body
  /fo:table
  /fo:block
  /fo:table-cell
  /fo:table-row

-Message d'origine-
De : Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Envoyé : mardi, 25. juin 2002 09:31
À : [EMAIL PROTECTED]; Hahn Kurt (CHA); '[EMAIL PROTECTED]'
Objet : Re: keep-with-.. property


On Tuesday 25 June 2002 08:58, Hahn Kurt (CHA) wrote:
. . .
 Is there another reason why my
 example here doesn't keep the rows together?

I don't know exactly what is supposed to work or not, but here we've been 
successfully using the following constructs with FOP 0.20.3rc:

fo:table-row keep-with-previous=always keep-together=always
fo:table-row keep-with-next=always keep-together=always
fo:table-row keep-with-previous=always

Note however that bug 7449 is not fixed yet: rows that do not fit on one
page 
cause infinite loops
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7449)

-Bertrand


RE: keep-with-.. property

2002-06-25 Thread Hahn Kurt (CHA)
I don't exactly know what you mean, but I think that wouldn't fit my needs,
which is, that the table-row shown belown should be on a new page if there's
not enough space to add at least one more row (actually much like the title
of a chapter or a section, which should never stand alone, but doesn't have
necessarily to start a new page everytime)

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : mardi, 25. juin 2002 10:38
À : [EMAIL PROTECTED]
Objet : RE: keep-with-.. property



put it in one block together whith the data that it alsways be shown with
and try bertrands code on the fo:block property...

is a wild guess neva tried this one before :D

but wild guesses  fop has always worked for me :D

Jochen Maes
ICT Development


KBC Securities (kbcsecurities.com)
Havenlaan 12 Avenue du Port SIF 8683
B-1080 Brussels
Belgium

 Tel:  +32 2 429 96 81  

 GSM:  +32 496 57 90 99 

 E-mail :  [EMAIL PROTECTED] 





This message and any attachments hereto are for the named person's use
only. It may contain confidential, proprietary or legally privileged
information. You may not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. If you have received this e-mail message without being
the intended recipient, please notify KBC Securities promptly and delete
this e-mail. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorised to state them to be the views of KBC Securities. KBC
Securities reserves the right to monitor all e-mail communications through
its networks and any messages addressed to, received or sent by KBC
Securities or its employees are deemed to be professional in nature. The
sender or recipient of any messages to or of KBC Securities agrees that
those may be read by other employees of KBC Securities than the stated
recipient or sender in order to ensure the continuity of work-related
activities and allow supervision thereof. KBC Securities does not accept
liability for the correct and complete transmission of the information, nor
for any delay or interruption of the transmission, nor for damages arising
from the use of, or reliance on, the information.


RE: keep line-breaks in PDF

2002-06-24 Thread Hahn Kurt (CHA)
Thanks a lot, I translated the CR to #x2028; which worked without any
problems.

Kurt

-Message d'origine-
De : J.Pietschmann [mailto:[EMAIL PROTECTED]
Envoyé : vendredi, 21. juin 2002 23:42
À : [EMAIL PROTECTED]
Objet : Re: keep line-breaks in PDF


Hahn Kurt (CHA) wrote:
 I'm generating a document from a DB which contains fields of up to 2000
 characters In those fields,any line-break is stored, and if I look at my
 XSL-FO in a text-editor, I see that all the line-breaks are still there.
 They're of the form: #13;. If process the document through FOP (the
 contents are displayed in table cells), Acrobat seems to ignore the
 line-breaks completely. 
 Does FOP strip away the  #13;? Or do I have to use another line-break
 character?

If the data is reparsed, the XML parser is oblieged to
normalize a CR (U+000D) to LF (U+000A) (if you write #13;
instead of putting a CR into the text you get a CR delivered
to FOP). If you are passing the data in-memory, FOP will see
the CR.
After this, linefeeds are possibly converted to spaces,
according to the value of linefeed-treatment in effect
  http://www.w3.org/TR/xsl/slice7.html#linefeed-treatment
and then white space is collapsed, controlled by the
values of white-space-treatment and white-space-collapse

If you want to have your line breaks preserved, you
should set linefeed-treatment to preserve. Unfortunately,
FOP doesn't implement this. You can set white-space-collapse
to false, which will not only keep runs of spaces but also
the linefeeds intact (which is actually a bug).
If you want to have white space collapsed, you can
- do this at a transformation level
- use a transformation which transforms each run of characters
   between two line bbreaks into a separate fo:block
- translate the CR to #x2028; (Unicode LINE SEPARATOR) which
   is apparently treated specially

HTH
J.Pietschmann


RE: performance problem renedering nested fo-tables

2002-06-21 Thread Hahn Kurt (CHA)
Oops. I was testing a document without nested tables: Here are the correct
values:
PDF (104Kb) : 16 seconds
xml (511Kb) : 7 seconds
Sorry

-Message d'origine-
De : Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]
Envoyé : vendredi, 21. juin 2002 08:27
À : '[EMAIL PROTECTED]'
Objet : RE: performance problem renedering nested fo-tables


Hi,
I'm generating a very similar document, also with nested tables within a
main, one-column table. Here's my values:
PDF (144 Kb, about 30-40 pages): 15 seconds
just the XML (62 Kb): 7 seconds.

I wouldn't say that FOP slows down a lot. But: Maybe it's your browser
that's slowing down. I did my tests from a command-line tool, since it
wouldn't be very fair to blame FOP only because IE is a lame duck...

Kurt

-Message d'origine-
De : Argyn Kuketayev [mailto:[EMAIL PROTECTED]
Envoyé : samedi, 15. juin 2002 00:03
À : '[EMAIL PROTECTED]'
Objet : RE: performance problem renedering nested fo-tables


addition to a previous message: I'm using FOP 0.20.3 with Cocoon 2.0.1. As I
already stated, time to generate XSL-FO and serialize it to view in the
browser is under 3 sec. Full time to generate PDF is about 15 seconds.


keep line-breaks in PDF

2002-06-21 Thread Hahn Kurt (CHA)
I'm generating a document from a DB which contains fields of up to 2000
characters In those fields,any line-break is stored, and if I look at my
XSL-FO in a text-editor, I see that all the line-breaks are still there.
They're of the form: #13;. If process the document through FOP (the
contents are displayed in table cells), Acrobat seems to ignore the
line-breaks completely. 
Does FOP strip away the  #13;? Or do I have to use another line-break
character?

Kurt


RE: Block and page changing

2002-06-13 Thread Hahn Kurt (CHA)
keep-together=always does what I need, but just out of curiosity: What
does a keep-together condition with strength of the given integer in the
appropriate context mean?? I tried to see what happens if insert an integer
value instead of always, but that didn't really explain it..

Kurt

-Message d'origine-
De : Ralf Steppacher [mailto:[EMAIL PROTECTED]
Envoyé : mardi, 11. juin 2002 12:26
À : [EMAIL PROTECTED]
Objet : Re: Block and page changing


Hello Kurt.

 fo:table-row font-size=9pt keep-together=true
 I couldn't figure what value I have to give it...

Legal values are auto, always and an integer value. Integer 'Imposes 
a keep-together condition with strength of the given integer in the 
appropriate context.' [http://www.w3.org/TR/xsl/slice7.html#keep-together]


HTH
Ralf


RE: White space between table-rows. HOW?

2002-06-13 Thread Hahn Kurt (CHA)
I still haven't figured out how I can insert space between table-rows. I
would like to have a propert

-Message d'origine-
De : J.Pietschmann [mailto:[EMAIL PROTECTED]
Envoyé : jeudi, 6. juin 2002 01:09
À : [EMAIL PROTECTED]
Objet : Re: White space between table-rows. HOW?


Hahn Kurt (CHA) wrote:
 Below is a code sample from a table I'm displaying. I need to have some
 space between 2 rows, in order to separate them visually. I tried a number
 of things, especially the various padding-properties but also other
things,
 but no clue so far. The only thing that worked (a little, not really
well),
 was to add an empty row, or to fix the row-heigth, but that's not dynamic,
 so it isn't really that... 

You can use space-before=... on the elements each table
cell in the row following the space, like

  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell text-align=center number-columns-spanned=4
   fo:blockLe procès-verbal de la session du 24 et 25 janvier 2002
 est adopté.   /fo:block 
   /fo:table-cell
  /fo:table-row
  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell
fo:block space-before=30pt4/fo:block 
   /fo:table-cell
   fo:table-cell text-align=left number-columns-spanned=4
fo:block  space-before=30ptDISCUSSIONS ET APPROBATION DE
L'ORDRE DU JOUR/fo:block 
   /fo:table-cell
   /fo:table-row
  fo:table-row 

J.Pietschmann






TR: White space between table-rows. HOW?

2002-06-13 Thread Hahn Kurt (CHA)
I still haven't figured out how I can insert space between table-rows. I
would like to have a property that applies on a table-row. The various
padding properties didn't seem to produce any effect, no matter what values
I gave. One temporary solution I'm using is to specify the height of the
row, but I need to achieve that dynamically, since not every table-row will
have the same height.

Thx

Kurt

-Message d'origine-
De : J.Pietschmann [mailto:[EMAIL PROTECTED]
Envoyé : jeudi, 6. juin 2002 01:09
À : [EMAIL PROTECTED]
Objet : Re: White space between table-rows. HOW?


Hahn Kurt (CHA) wrote:
 Below is a code sample from a table I'm displaying. I need to have some
 space between 2 rows, in order to separate them visually. I tried a number
 of things, especially the various padding-properties but also other
things,
 but no clue so far. The only thing that worked (a little, not really
well),
 was to add an empty row, or to fix the row-heigth, but that's not dynamic,
 so it isn't really that... 

You can use space-before=... on the elements each table
cell in the row following the space, like

  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell text-align=center number-columns-spanned=4
   fo:blockLe procès-verbal de la session du 24 et 25 janvier 2002
 est adopté.   /fo:block 
   /fo:table-cell
  /fo:table-row
  fo:table-row height=35pt font-weight=bold font-size=12pt
   fo:table-cell
fo:block space-before=30pt4/fo:block 
   /fo:table-cell
   fo:table-cell text-align=left number-columns-spanned=4
fo:block  space-before=30ptDISCUSSIONS ET APPROBATION DE
L'ORDRE DU JOUR/fo:block 
   /fo:table-cell
   /fo:table-row
  fo:table-row 

J.Pietschmann





Embedding a table in a table-row

2002-06-12 Thread Hahn Kurt (CHA)
I'm trying to embed a table in a table row. It seems to work, but my text
isn't displayed (not even the test block text I inserted): What I'm seeing
is two thick lines, and I'm suspecting each line represents one row (because
I should get two rows with the template below).Why are they compressed like
this?  Do I need to use some other property in order to be able to display
an embedded table? Or is just some error in my code?
Thanks in advance


The definition of the wrapping table:
fo:table  border-style=solid font-size=10pt
 fo:table-column column-width=17cm/
 fo:table-body
 xsl:apply-templates select=//eleTexte:listeAffaires/
 /fo:table-body
/fo:table
 

and here goes the template that should fill one row of the table:
xsl:template match=eleTexte:soustitre1 
  fo:table-row font-size=14pt font-weight=bold height=40pt
  fo:table-cell
 fo:table  border-style=solid font-size=10pt
fo:table-column column-width=0.8cm/
fo:table-column column-width=16.2cm/
fo:table-row height=30pt
fo:table-cellfo:blocktext/fo:block
fo:blockxsl:value-of
select=.//fo:block
/fo:table-cell
fo:table-cell
fo:blockxsl:value-of
select=../eleTexte:soustitre1_text//fo:block
/fo:table-cell
/fo:table-row
   /fo:table
  /fo:table-cell
  /fo:table-row
  /xsl:template 


RE: Block and page changing

2002-06-11 Thread Hahn Kurt (CHA)

I tried to use the keep-together property on a table row, but I'm not sure
if it's really working. Can somebody tell me the right syntax? What I tried
is this:
fo:table-row font-size=9pt keep-together=true
I couldn't figure what value I have to give it...

Kurt


-Message d'origine-
De : Ramon Maria Gallart [mailto:[EMAIL PROTECTED]
Envoyé : jeudi, 6. juin 2002 12:38
À : [EMAIL PROTECTED]
Objet : RE: Block and page changing


Thanks Jens and Florencs for your answers. They all both fit my needs.

Ramon.


Use a relative path

2002-06-06 Thread Hahn Kurt (CHA)
I need to add a graphics file, originally placed in the same directory where
my sitemap is located.
¨There's no problem if I use an absolute path, the file is displayed. If I
use a relative path, nothing. The file is very small, so I even copied in
other subdirectories, but still nothing. How can I do that?

working:
 fo:external-graphic
src=D:\jakarta-tomcat-4.0.1\webapps\cocoon\mount\AigleK\ecu.jpg/
not working:
fo:external-graphic src=ecu.jpg/

Kurt


Use a relative path do insert a graphics file (Re-post with bett er title)

2002-06-06 Thread Hahn Kurt (CHA)




I need to add a graphics file, originally placed in the same directory where
my sitemap is located.
¨There's no problem if I use an absolute path, the file is displayed. If I
use a relative path, nothing. The file is very small, so I even copied in
other subdirectories, but still nothing. How can I do that?

working:
 fo:external-graphic
src=D:\jakarta-tomcat-4.0.1\webapps\cocoon\mount\AigleK\ecu.jpg/
not working:
fo:external-graphic src=ecu.jpg/

Kurt


fo:table-cell number-columns-spanned: Is this property working at all?

2002-05-31 Thread Hahn Kurt (CHA)
Are there any limitations to the number-columns-spanned-property?
I tried this to fill a 5-columns table with 2 cells, but it doesn't seem to
work:

 xsl:template match=soustitre3
fo:table-row
   fo:table-cellfo:block
xsl:value-of select=./
  /fo:block/fo:table-cell
  fo:table-cell number-colums-spanned=4
text-align=centerfo:block
  xsl:value-of select=../soustitre3_intitule/
  /fo:block/fo:table-cell
/fo:table-row
  /xsl:template

I'm using this same property in another rule in the same XSL-file, and it
does what I want (e.g. span several colums with just one cell). But in this
case, the text from xsl:value-of select=../soustitre3_intitule/,. which
is actually rather long, is squeezed in the second cell, (with appr. 1 word
per line, since the second column is rather narrow).
Any ideas?

Kurt