RE: Infinite loop with FOP 0.20.5

2006-03-15 Thread Rymasz Jacky
*grin*
Are you sure you don't have any keep-with-next or keep-with-previous left...
Works for me 

-Message d'origine-
De : Chris Bowditch [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 15 mars 2006 15:41
À : fop-users@xmlgraphics.apache.org
Objet : Re: Infinite loop with FOP 0.20.5

[EMAIL PROTECTED] wrote:

snip/

 fo:table-cell number-columns-spanned=10 number-rows-spanned=2
 xsl:use-attribute-sets=pad.lr.000 brd.006
   fo:block xsl:use-attribute-sets=blk.007
   fo:inline xsl:use-attribute-sets=blk.font.006
   xsl:value-of
 select=/fo-model/nsdc:data/nsdc:[EMAIL PROTECTED]quot;fquot;]/
   /fo:inline
   /fo:block
 /fo:table-cell
 
 Has someone already experiensed this problem before? One solution is 
 not to use spanned rows. This, however, will cost us a lot of 
 resources. Do you think there is an alternative solution?

Yes: upgrade to the much improved 0.91beta :)

Chris



-
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: Rép. : Infinite loop with FOP 0.20.5

2006-03-13 Thread Rymasz Jacky
I agree with Willy
I had the same problem and it was due to a keep-with-next on a table with 
content overflowing a page...
I had to remove the keep-with-next and redesign my page

-Message d'origine-
De : Willy Reinhardt [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 13 mars 2006 15:57
À : [EMAIL PROTECTED]; fop-users@xmlgraphics.apache.org
Cc : [EMAIL PROTECTED]
Objet : Rép. : Infinite loop with FOP 0.20.5

Hi,

We had similar problem and it was a conjunction of attributs keep-together and 
keep-with-next with huge fo:block into a table row. Check if you don't have to 
big fo:block we solve our problem by dividing fo:block.

Regards

Willy

 [EMAIL PROTECTED]  
Hello,

We have experiensed a specific problem with FOP 0.20.5.

Background:
We are using FOP to dynamically generate PDFs from a web application. Most of 
the pages contain tables and the majority of the text information in the text 
cells comes from user input.

The problem:
When a long text string is inserted into a cell nead the end of a page, it 
overflows the end of the page and continues on the next one. Under these 
conditions FOP starts an infinite loop printing

[INFO] [Number]

Where Number increases.

The problem does not appear when a number of small rows are shifted to the next 
page but only when a row is shared between two pages.

Could you please give us some tip on how to cope with the problem?

Thanks in advance!

Best regards,
Yavor Kolarov

-
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: Infinite loop with FOP 0.20.5

2006-03-13 Thread Rymasz Jacky
Is this bug corrected in 0.91beta? 
Can we break overflowing pages?

-Message d'origine-
De : Chris Bowditch [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 13 mars 2006 16:13
À : fop-users@xmlgraphics.apache.org
Objet : Re: Infinite loop with FOP 0.20.5

[EMAIL PROTECTED] wrote:

snip/

 The problem:
 When a long text string is inserted into a cell nead the end of a 
 page, it overflows the end of the page and continues on the next one. 
 Under these conditions FOP starts an infinite loop printing

Does the row containing the offending cell have the keep-together property 
defined? If so, then that is the cause of the problem. You need to remove it to 
allow FOP to break the row across pages.

If this isn't the case, then I guess you hit a bug in 0.20.5. Perhaps someone 
else might be able to offer advice for 0.20.5, but this branch of the code is 
old and no longer maintained. My recommendation would be to upgrade to 
0.91beta, where the page breaking logic is much improved.

snip/

Chris



-
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: Keeping tables together.

2006-03-06 Thread Rymasz Jacky



THe 
way I know to keep two differents elements (tables, images, etc...) is to put 
them into a table and use the keep-with-next attribute on the "main" table 
cells...

- 
create a main table with 1 column and 2 rows

- put 
your first table into the first cell of the main 
table
- put 
your second table into the second cell of the main table
- use 
the keep-with-next or keep with previous attribute on the main 
cells

De: Andre Groeneveld 
[mailto:[EMAIL PROTECTED] Envoyé: lundi 6 mars 2006 
10:03À: fop-users@xmlgraphics.apache.orgObjet: 
Keeping tables together.


Hi all,

Is there a way of keeping two tables 
together on the same page? The two tables are different in column sizes, the 
first table has for example 2 columns and the second table has 5 or 6 
columns.

Thanx,
Confidentiality Caution and Disclaimer
This message and/or any attachment thereto ("the message")contains 
privileged and confidential information intendedonly for the recipient. If you are not the intended recipient of 
this message,please erase it permanently once you have notified 
thesender, per return e-mail, that you have received themessage in 
error.Unless the sender is duly authorised by either the 
TelesureGroup, or any of its subsidiary or affiliated companies or I.S Services("the Group") to send 
this message and unless the contentof this message is also duly authorised 
by the Group, anyviews expressed in this message are those of the 
individualsender and the Group will not accept liability therefore,nor 
for any consequential damage arising there from.Any recipient of an 
unacceptable communication, a chainletter or offensive material of any 
nature is requestedto be reported to [EMAIL PROTECTED].


number-rows-spanned problem

2005-10-27 Thread Rymasz Jacky
 
Hello everyone ;)

I have a wee problem concerning the height of rows when using the
number-rows-spanned property.

Here my document:

I have a table with 2 columns.
On the first column, I have a image of a certain size (lets say
height=500)
On the right column, I have X rows depending of my data (lets say 1 row
height=100)
My rows contains text.
I have using number-rows-spanned=X on the first column.

The problem is that if I got not enough rows on the right column, I have
the first rows of height 100 and the last one height equls to the
remaining height of the image.
Example:

If I've got 4 rows, I'll get 3 rows with 100 height and the last one
will be 200 height.

What I want is 4 colums of 125 each on my right column.

What can I do to obtain X rows of same height size? 
I'm not fixing any height on the rows.

Sincerely,

Jack

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



RE: Need Help : FO file converted to pdf gets corrupted with '#'

2005-08-22 Thread Rymasz Jacky
I tried it with the 0.20.5RC and works fine with me.
I can't reproduce it. 

-Message d'origine-
De : Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 22 août 2005 14:52
À : fop-users@xmlgraphics.apache.org
Objet : Re: Need Help : FO file converted to pdf gets corrupted with '#' 

I'm afraid I can't reproduce it. The XML file looks fine.

On 22.08.2005 13:56:53 fdbt dbt wrote:
 Hi,
 
 I am trying to convert an xsl:fo (attached sample.xml) file to a pdf 
 file using Apache FOP. The ouput gets partially  corrupt displaying 
 '#' instead of any character in the second half of the file. (output 
 file  sample.pdf attached). i'm trying to figure the reason
 
 but not really getting it.
 
 The same xsl:fo when converted to svg or awt looks ok.
 
 
 additional information:
 ---
 FOP version : fop-0.20.5
 
 COMMAND LINE DUMP
 --xxx---
 D:\tmpfop -d -fo sample.xml -pdf sample.pdf [DEBUG] Input mode:
 [DEBUG] FO
 [DEBUG] fo input file: sample.xml
 [DEBUG] Output mode:
 [DEBUG] pdf
 [DEBUG] output file: sample.pdf
 [DEBUG] OPTIONS
 [DEBUG] no user configuration file is used [default] [DEBUG] debug 
 mode on [DEBUG] dump configuration [DEBUG] quiet mode on [INFO] Using 
 org.apache.xerces.parsers.SAXParser as
 SAX2 Parser
 [INFO] base directory: file:/D:/tmp/
 [INFO] FOP 0.20.5
 [INFO] Using org.apache.xerces.parsers.SAXParser as
 SAX2 Parser
 [INFO] building formatting object tree [INFO] setting up fonts [INFO] 
 [1] [DEBUG] Last page-sequence produced 1 pages.
 [INFO] Parsing of document complete, stopping renderer [DEBUG] Initial 
 heap size: 793Kb [DEBUG] Current heap size: 1010Kb [DEBUG] Total 
 memory used: 217Kb
 [DEBUG]   Memory use is indicative; no GC was
 performed
 [DEBUG]   These figures should not be used
 comparatively
 [DEBUG] Total time used: 266ms
 [DEBUG] Pages rendered: 1
 [DEBUG] Avg render time: 266ms/page
 --xxx---
 
 
 It would be grate if someone can help me out with this.


Jeremias Maerki


-
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: FO - Force Pages on same spread

2005-08-22 Thread Rymasz Jacky
Do you mean using this property of fo:page-sequence:
 force-page-count=end-on-even

This will give you a blank page at the end of your page sequence if the last 
page is odd... Making you last page even and blank.

Is that what you're looking for?

Jack

-Message d'origine-
De : Prakash R [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 22 août 2005 15:34
À : fop-users@xmlgraphics.apache.org
Objet : Re: FO - Force Pages on same spread

I meant putting the two pages on two different pages but making sure they are 
side by side like when you open the book you can see the pages side by side(i.e.
on the same spread).

Thank you.
Prakash

--- Jeremias Maerki [EMAIL PROTECTED] wrote:

 Are you talking about imposition (two-up)? Putting two pages besides 
 each other on one piece of paper? FOP can't do that, yet. You'd have 
 to use a third-party tool to do that.
 
 On 20.08.2005 06:44:20 Prakash R wrote:
  Hi,
  
  I'm preparing a FO document in order to generate a catalog book. I 
  would like to have two pages
 together
  such that they are on the same spread i.e. if the first page is an 
  even page(left) then the next
 would
  be the following odd pages(right) making it on the same spread. On 
  the other hand if the first page
 falls
  on an odd page(right), I would like to force a
 blank
  page and start it as an even page(left) so that
 the
  second page is an odd page(right) making it on the same spread.
  
  How can I achieve this? Any ideas would be greatly appreciated.
 
 
 
 Jeremias Maerki
 
 

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





Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs 
 

-
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 surrounding box

2005-07-18 Thread Rymasz Jacky
Thx for your answer Lou.
I'm sorry to answer so late but I was away for few weeks.

I tried to put a table into the cells but the cell of the inner table still 
take the full width of the outer cell.

Here a snippet of my code:
fo:table
fo:table-column column-width=2.5cm/
fo:table-column column-width=5.5cm/
fo:table-column column-width=5cm/
fo:table-column column-width=4.6cm/
fo:table-body
fo:table-row background-color=red
fo:table-cell number-columns-spanned=4 
background-color=pink display-align=center
fo:table
fo:table-column /
fo:table-body
fo:table-row background-color=green
fo:table-cell background-color=blue
fo:block
xsl:value-of 
select=concat('TEST: ', ../@number)/
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table

Jack 

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 24 juin 2005 17:15
À : fop-users@xmlgraphics.apache.org
Objet : Re: dynamic surrounding box


How about putting text1 and test 2 into blind tables within the cells?  Put a 
border around the inner table and that should do the trick.
-Lou



|-+---
| |   Rymasz Jacky  |
| |   [EMAIL PROTECTED]|
| |   decaux.fr  |
| |   |
| |   06/24/2005 10:13|
| |   Please respond  |
| |   to fop-users|
| |   |
|-+---
  
---|
  | 
  |
  |To:  fop-users@xmlgraphics.apache.org  
  |
  |cc:  
  |
  |Subject: dynamic surrounding box 
  |
  
---|



Hello.

I would like to have a box around a dynamic text.
How can I obtain this effect?

I tried with blocks and tables but either I have to put a static width, either 
the block fill totally the table-cell is is into.

What I want is:

_ table cells
||
|___|
|| Text 1 ||
|[__||
||
||
|   |
|| biger Text 2  |   |
|[___|   |
||

Where Text1 and biger Text 2 are of unknown length and are into table-cells.

Thx alot

Jack






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



dynamic surrounding box

2005-06-24 Thread Rymasz Jacky



Hello.

I would like to have 
a box around a dynamic text.
How can I obtain 
this effect?

I tried 
withblocks and tables but either I have to put a static width, either the 
block fill totally the table-cell is is into.

What I want 
is:


_ 
table cells
| 
|
| 
___ 
|
| 
| Text 1 | 
|
| 
[__| 
|
||


| 
|
| 
|
| 
| biger Text2 | |
| 
[___| |
||

Where 
"Text1"and "biger Text 2" are of unknown length and are into 
table-cells.

Thx 
alot

Jack



RE: not yet implemented properties

2005-04-20 Thread Rymasz Jacky
FOP is not FULLY compliant to the W3C XSL-FO 1.0 standard.
Here the URL you can check to see what has been or has not been  implemented
http://xml.apache.org/fop/compliance.html 

If you want some know issues with Fop go there, you may find some
workaround:
http://xml.apache.org/fop/fo.html


Jack

-Message d'origine-
De : Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 20 avril 2005 10:41
À : fop-users@xmlgraphics.apache.org
Objet : not yet implemented properties

Hi,

I am just strating to use Apache FOP. 
The first test looked quite nice!
But now, I have a XSL-FO tutorial that uses some properties, that FOP has
not implemented yet.

I guess FOP *is* XSL-FO 1.0 conform ?

Some of these properties are
- font
- word-spacing
- text-transform

Is there a known workaround for these issue?

Thanks,
Matthias

-
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: favorite tools for writing XSLT?

2005-04-11 Thread Rymasz Jacky
I was just wondering: 
Does XMLSpy or other IDE have an UML type kinda functionalities?
What I mean is is it possible to have a graphical view of what template is
call where, by what XSL stylesheet, etc..??
... really like UML for Java/C++.

Jack


-Message d'origine-
De : John Root [mailto:[EMAIL PROTECTED] 
Envoyé : samedi 9 avril 2005 20:06
À : fop-users@xmlgraphics.apache.org
Objet : Re: favorite tools for writing XSLT?

On 4/7/05 2:47 PM, Mike Trotman [EMAIL PROTECTED] wrote:

 The main benefit of XMLSpy / other IDEs is that they can unpbtrusively 
 present you with a list of the attributes and legal values for 
 whichever element you are creating which saves time when learning 
 XSLT.

'Saves time' being the operative phrase here. An IDE is not simply
beneficial for learning XSLT, it makes the XSL development process go much
faster with less need for the verbose user input required by XML/XSL. Don't
underestimate the value of the XSL debugging environment provided by XMLSpy.
It's first rate and, IMO, indispensable for professional XML/XSL
development. For schema developers, the 'generate documentation' function of
XMLSpy is a real plus.

In truth, I'm a Mac user at heart and a big fan of BBEdit. I've tried a lot
of other tools for XML dev too, but became sold on XMLSpy after using it for
a tricky Win dev project. It's well worth looking into and with a 30 day
free (fully functional) download demo there's no up front financial
commitment. 

John


-
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: How can I rotate text for a 90o sidebar?

2005-04-05 Thread Rymasz Jacky
This seems much cleaner than my solution indeed. ;)
Nice work!

Jack 

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 31 mars 2005 17:52
À : fop-users@xmlgraphics.apache.org
Objet : RE: How can I rotate text for a 90o sidebar?

I hadn't really looked at this because the huge indentations put me off, but
now I've gotten around to it.

You can do this without disabling escape characters and by using literal
result elements. I'm inserting the whole stylesheet because the named
template needs to be called with certain parameters rather than just the
string you want rendered in stacked blocks (though you could write a
template that would take just the string). Here's the whole stylesheet
(tested on Saxon 8):

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet
  version=2.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:fo=http://www.w3.org/1999/XSL/Format;
  exclude-result-prefixes=fo

  xsl:template match=/
xsl:call-template name=scatter-string
  xsl:with-param name=text select=substring(.,2)/
  xsl:with-param name=rotatedselect=substring(.,1,1)/
/xsl:call-template
  /xsl:template
 
  xsl:template name=scatter-string
xsl:param name=text/
xsl:param name=rotated/
fo:blockxsl:value-of select=$rotated//fo:block
xsl:if test=string-length($text)  0
  xsl:call-template name=scatter-string
xsl:with-param name=text select=substring($text, 2)/
xsl:with-param name=rotated select=substring($text,1,1)/
  /xsl:call-template
/xsl:if
  /xsl:template

/xsl:stylesheet

The only change to the algorithm is to wrap the block around the result
rather than to insert it into a variable. Other than that, I removed all the
variables, as they were getting used only once. Instead, I put the values
that were going into the variables into the parameters. I also moved the
selects into the parameters and reduced the choose to an if, since the
otherwise was empty anyway.

FWIW

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




[EMAIL PROTECTED] 
03/30/2005 07:25 AM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users@xmlgraphics.apache.org
cc

Subject
RE: How can I rotate text for a 90o sidebar?







Nice.  I'll check this out.
-Lou



  
  Rymasz Jacky   
  [EMAIL PROTECTED] To: 
fop-users@xmlgraphics.apache.org  
  decaux.fr   cc: 
   Subject: RE: How can I 
rotate text for a 90o sidebar?  
  03/29/2005 03:39
  Please respond   
  to fop-users   
  
  



Here a bit of code which scatter each letter of a string into a vertical
set
of blocks (ie: vertical string):

 xsl:template name=scatter-string
   xsl:paramname=text/
   xsl:paramname=rotated/
   xsl:variable name=lenxsl:value-of
select=string-length($text)//xsl:variable

   !-- Concat the blocks containing each letters --
   xsl:value-of disable-output-escaping=yes
select=$rotated/


   xsl:choose
   xsl:when test=$len  0
 xsl:variable
name=vrotated
 xsl:text
lt;fo:blockgt;/xsl:text
 xsl:value-of
select=substring($text,1,1)/
 xsl:text
lt;/fo:blockgt;/xsl:text
 /xsl:variable
 xsl:call-template
name=scatter-string

xsl:with-param name=text

xsl:value-of
select=substring($text, 2)/

/xsl:with-param

xsl:with-param name=rotated

xsl:value-of
select=$vrotated/

/xsl:with-param
 /xsl:call-template
   /xsl:when
   xsl:otherwise
   /xsl:otherwise
   /xsl:choose
 /xsl:template


I hope this could help ;)

Jack

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : lundi 28 mars 2005 15:57
À : fop-users@xmlgraphics.apache.org
Objet : RE: How can I rotate text for a 90o sidebar?


The following code prints top to bottom, but the letters are stacked. It's
a starting point.

svg:text x=1 y=1 writing-mode=tb glyph-orientation-vertical=0
YOUR
TEXT HERE /svg:text

-Lou




  Andreas L.

  DelmelleTo:
fop-users@xmlgraphics.apache.org

  [EMAIL PROTECTED] cc:

  ndora.beSubject: RE: How can I
rotate
text for a 90o sidebar?


  03/27/2005 06:30

  Please respond