create READ_ONLY PDF from FOP ??

2002-06-12 Thread Jie Wang
Title: Possibility of converting from XML to PDF without the intermediate stage of FO format



Can we 
create READ_ONLY PDF from FOP ?? Thanks.

  -Original Message-From: Jie Wang 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 11, 2002 3:57 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: Possibility 
  of converting from XML to PDF without the interm ediate stage of FO 
  format
  Yes, 
  we are doing the xml to pdf transformation in memeory. The xml file size is 
  330K and pdf file is 56 page.
  
-Original Message-From: Buonincontri, Steve (CAP, 
MMF, ITSS) [mailto:[EMAIL PROTECTED]Sent: 
Tuesday, June 11, 2002 3:51 PMTo: 
[EMAIL PROTECTED]Subject: RE: Possibility of converting 
from XML to PDF without the intermediate stage of FO 
format
I 
have also noticed that doing the XML to FO to PDF in memory as opposed to 
writing to disk reduces time by about 80% in the samples that I 
tried.

I 
was using iTEXT, XEP, FOP, RTF2FO etc. 

Below you say that a 56 page PDF from XML files 
takes about 2 minutes. That sounds really good - I was working with 2 pages 
and 2 XML files generating FO doing an XSLT transform to merge and coverting 
to PDF and that was taking me about 1.5 minutes on a 333MHZ 
machine.

I 
was just curoius what the total sizes of the XML, the FOs and the PDF were. 
Did you concate the FOs? how did you get a single PDF (what 
tool)?

steveb

  -Original Message-From: Jie Wang 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 11, 2002 6:37 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Possibility of converting from XML to PDF without the intermediate stage 
  of FO format
  The size of xml file is 330K. 

  
-Original Message-From: Buonincontri, Steve 
(CAP, MMF, ITSS) 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 
11, 2002 3:37 PMTo: 
[EMAIL PROTECTED]Subject: RE: Possibility of converting 
from XML to PDF without the intermediate stage of FO 
format
Just curious - what are the sizes of the XML, 
FO and PDF files?


  -Original Message-From: Jie Wang 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 11, 2002 5:31 
  PMTo: '[EMAIL PROTECTED]'Subject: 
  Possibility of converting from XML to PDF without the intermediate 
  stage of FO format
  How to decrease the responding time of converting from 
  XML to PDF ? Currently it took me about 2 Mins to generate my 56 page 
  PDF from XML files. Is that possible to convert from XML to PDF 
  without the intermediate stage of FO format ? 
  Thanks, Jie 

  -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, June 04, 2002 11:47 AM 
  To: [EMAIL PROTECTED] Subject: Re: FOP error with xsl:copy-of .../ 
  
  There are no chapter_title or sub formatting objects 
  in xsl-fo, you have to transform it in xslt to 
  fo objects, like fo:inline rather than just copying 
  them to the fo. 
  [EMAIL PROTECTED] wrote:  Hi,  
   I am attaching the test 
  xsl,xml and the java files. The problem is that the description 
  of any node could have tags and text mixed. If I use 
  xsl:value-of (with FOP), I get only
   the text and when I use 
  xsl:copy-of (without FOP embeded), I get the desired result, 
  but with FOP I am getting 'error 10231' I have tried 
  everything that I could think of and could not come up with the 
  correct stylesheet. 
   I truly could use your 
  help  I am anxiously 
  waiting for a solution.   Thank you so much in advance.  Norm  
   --- ERROR - 
   ERROR 10231 
  [fop ] (): Unknown formatting object 
  null^chapter_title  Exception 
  in thread "main" org.apache.fop.apps.FOPException: 
  java.lang.NullPoin  
  erException  at 
  org.apache.fop.apps.Driver.render(Driver.java:486)  at 
  test1.main(test1.java:102)  
    test.xml 
  --  ?xml version="1.0" 
  encoding="iso-8859-1"?  
  ?xml-stylesheet type='text/xsl' href=''? 
   document id="DOCUMENT 
  810-005_103"  chapter 
  id="test"  
  chapter_titleTesting Chapter 
  sub3/sub/chapter_title 
   
  /chapter  
  /document   -- test.xsl 
  ---  
  xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  version="1.0"  xmlns:fo="http://www.w3.org/1999/XSL/Format" 
   xsl:template 
  match="document"  fo:root 

RE: Possibility of converting from XML to PDF without theinterme dia te stage of FO format

2002-06-12 Thread gary cor
Matt,
I think Adobe are working largley on XMP which is XML that is more friendly 
to Adobe PDF (which is a generally the approach Adobe rather than the way 
round you'd mentioned).

Seybold offers a fantastic collection of information on these kind of issues 
and I also think you can get free access to check this out just for a 
limited period if you go to there site.

http://www.seyboldseminars.com/sf2002/index.php?dir=attendeefile=registration
Hope the temporary access is still good!
Cheers
G.

From: Savino, Matt C [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: Possibility of converting from XML to PDF without theinterme 
dia te stage of FO format
Date: Tue, 11 Jun 2002 19:06:47 -0400

 You might want to check out the adobe sight I think they
 might have somehting in the works.
Are you talking about either the Make Accessible plug-in or the Save as XML
plugin?
I don't think either of these qualify, but it would be cool if Adobe is
working on some new kind of PDF that is more XML friendly and more 
conducive
to large docs being generated on demand (possibly sacrificing some of the
exotic formatting features that reporting apps have no use for anyway). It
seems that the common factor across all these commercial and free PDF
generators with performance problems is the conversion of XML to PDF.

-Matt

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com



Re: stykesheet attribute version

2002-06-12 Thread Jochen . Maes

the problem is solved, i dunno what changed or what happen, i just rebuild
all my jars and now it works same xml, same xsl etc...

weird shite :D


thx all for helping

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.



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 


sub/superscript not supported by FOP ?

2002-06-12 Thread Norbert Schoepke
Hi FOPpers !

While writing on a extensive DocBook Documentation I discovered that
subscript and superscript tags from DocBook don't get rendered properly
when transformed to FO and then to PDF via FOP. I use Norman Walsh's
DocBook-XSL-Stylesheets and for HTML everything work's fine...
The text in both tags gets rendered just as normal text, thus being almost
useless...This also covers the footnote problem, where the footnote
indices don't get superscripted as they should...
Is this a known problem ? It isn't mentioned in the limitations section
of the FOP Homepage...

thanks for any reply

Norbert Schöpke
Developer

Critical Reach AG
- optimizing the manufacturing aftermarket -
Garmischer Straße 19/21
81377 München

Fon:  +49 (89) / 54 26 21 - 54
Fax:  +49 (89) / 54 26 21 - 15
mailto:[EMAIL PROTECTED]
http://www.criticalreach.com




Re: Embedding a table in a table-row

2002-06-12 Thread Bertrand Delacretaz
Hi Kurt,

On Wednesday 12 June 2002 10:45, Hahn Kurt (CHA) wrote:
 I'm trying to embed a table in a table row. 

It would be easier if you could post the XSL-FO that results from your 
transformation, ideally the smallest complete FO document that demonstrates 
your problem.

-Bertrand


SV: sub/superscript not supported by FOP ?

2002-06-12 Thread Klosa Uwe
You have to use vertical-align=sub or vertical-align=super until the
FOP20.0.3.

Regards Uwe


-Ursprungligt meddelande-
Från: Norbert Schoepke [mailto:[EMAIL PROTECTED]
Skickat: den 12 juni 2002 10:53
Till: [EMAIL PROTECTED]
Ämne: sub/superscript not supported by FOP ?


Hi FOPpers !

While writing on a extensive DocBook Documentation I discovered that
subscript and superscript tags from DocBook don't get rendered properly
when transformed to FO and then to PDF via FOP. I use Norman Walsh's
DocBook-XSL-Stylesheets and for HTML everything work's fine...
The text in both tags gets rendered just as normal text, thus being almost
useless...This also covers the footnote problem, where the footnote
indices don't get superscripted as they should...
Is this a known problem ? It isn't mentioned in the limitations section
of the FOP Homepage...

thanks for any reply

Norbert Schöpke
Developer

Critical Reach AG
- optimizing the manufacturing aftermarket -
Garmischer Straße 19/21
81377 München

Fon:  +49 (89) / 54 26 21 - 54
Fax:  +49 (89) / 54 26 21 - 15
mailto:[EMAIL PROTECTED]
http://www.criticalreach.com



docbook link and ulink to real links in PDF possible ?

2002-06-12 Thread Norbert Schoepke
Hello FOP community

As I've seen working links in a PDF (to other websites) I wonder if it's
possible to generate internal and external links from my DocBook into PDF ?
I already gave the archives a try but couldn't find anything useful...
The DocBook tag link doesn't get interpreted at all and ulink writes
the whole URL in [ ] behind the link text, which can be very annoying !

If I use the FOP extensions I can produce bookmarks that work, so I guess
there could be a solution for this...

btw.: When I use these FOP extensions with my Stylesheets, the TOC's and
LOT's all don't get proper leader dots to right-align the pagenumbers...
Why is this ? If I don't use them, I get the leader dot all fine lined
up...

any help would be very appreciated...

Norbert Schöpke
Developer

Critical Reach AG
- optimizing the manufacturing aftermarket -
Garmischer Straße 19/21
81377 München

Fon:  +49 (89) / 54 26 21 - 54
Fax:  +49 (89) / 54 26 21 - 15
mailto:[EMAIL PROTECTED]
http://www.criticalreach.com




Re: Embedding a table in a table-row

2002-06-12 Thread Louis . Masters


Here is my code:

fo:table-cell
fo:block
xsl:call-template name = processSubTable
 xsl:with-param name=tableheight select=auto/
/xsl:call-template
...

with the template looking like:

xsl:template name=processSubTable
xsl:param name=tableheight
 auto
/xsl:param
fo:table space-before.optimum=3pt space-after.optimum=3pt width=100%
height={$tableheight}
fo:table-column
...
/fo:table-column

fo:table-header
...
/fo:table-header


fo:table-body
...
/fo:table-body

/fo:table
/xsl:template

-Lou




Hahn Kurt (CHA) [EMAIL PROTECTED] on 06/12/2002 04:45:33 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Embedding a table in a table-row

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









render DOM to PDF with FOP

2002-06-12 Thread jmao
Hi,

I have seen in the FopServlet example how to embed the FOP in the servlet.
But the problem is that XSLTInputHandler been used in renderXML method only
takes xml file and xsl file. How can I set up FOP to render a in-memory DOM
object with a specified xsl file to PDF without having to write the DOM out
to a temporary disk file?

Thanks,
___
Jianbo Mao
CheckFree i-Solutions
Email: [EMAIL PROTECTED]
Office:  +44 (0) 1753 567896
Mobile: +44 (0) 7810 483974
Fax:  +44 (0) 1753 567897
___





FOP vs. Actuate Java Edition

2002-06-12 Thread Ryan.Asleson

Hello all,

Recently we had a sales demo of the Actuate Java Edition reporting tool.
The tool provides a Swing interface to assist in formatting the layout, and
it also can connect to RDBMS data sources to provide drag-n-drop additions
of report data elements.

We're currently planning on using an FOP-based solution for our reporting
needs.  We built a fairly optimized FOP architecture which performs well --
complex PDF pages are rendered at the rate of approximately 2 pages per
second on an Intel 750 MHz box.

Question:  Does anybody out there have any experience with the Actuate Java
Edition tool?  The GUI format designer would be nice, but I'm guessing not
as flexible as using XSL stylesheets as in FOP.  Also, would it perform
better than the FOP, as in being faster or using less memory?  I know the
Actuate tool can provide a table of contents, which is known to cause
problems when using FOP -- but I don't know if the Actuate tool suffers the
same problem (sales demos use small reports).

Any insight is greatly appreciated.

-Ryan





Re: render DOM to PDF with FOP

2002-06-12 Thread Jochen . Maes

to parse the xml:

 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document XMLDoc = db.parse(source);
System.out.println(file gevonden);
prop.put(targetKey, XMLDoc);

to parse the xsl:
 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
DocumentBuilder db = dbf.newDocumentBuilder();
inFile =  new File((String)initprops.get(key));
Document XSLDoc = db.parse(inFile);
TransformDocs.put(key, XSLDoc);

to transfer the xsl :
   transForm = transFactory.newTransformer(new DOMSource
((Node)TransformDocs.get(((String)props.get(languageKey)) + _XSL)));
res = new DOMResult();
transForm.setOutputProperty(omit-xml-declaration, yes);
transForm.transform(new DOMSource
((Node)props.get(sourceKey)),res);

to render the pdf:

   Document res = (Document) props.get(sourceKey);
ByteArrayOutputStream baOs = new ByteArrayOutputStream();
driver.setOutputStream(baOs);
 // renderen van het PDF document
driver.render(res);
props.put(targetKey, baOs.toByteArray());
baOs.close();
baOs = null;
res = null;




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.



   
[EMAIL PROTECTED]   
   
e.comTo: [EMAIL PROTECTED]  
 
 cc:
   
12/06/2002   Subject: render DOM to PDF with 
FOP   
13:25   
   
Please  
   
respond to  
   
fop-user
   

   

   




Hi,

I have seen in the FopServlet example how to embed the FOP in the servlet.
But the problem is that XSLTInputHandler been used in renderXML method only
takes xml file and xsl file. How can I set up FOP to render a in-memory DOM
object with a specified xsl file to PDF without having to write the DOM out
to a temporary disk file?

Thanks,
___
Jianbo Mao
CheckFree i-Solutions
Email: [EMAIL PROTECTED]
Office:  +44 (0) 1753 567896
Mobile: +44 (0) 7810 483974
Fax:  +44 (0) 1753 567897

RE: FOP vs. Actuate Java Edition

2002-06-12 Thread Ismaeil, Sameh Z
Hello,

Yes, we had some experience with Actuate and it was.. BAD

Actually we used version 4.1, used to be called ERW, but we also tested
version 5 and we had the same problems

First, the one that really had us change to FOP (after wasting money on
Actuate), text inside Actuate produced table cells DOES NOT WRAP. The text
is simply written on the neighbor cells

Also, when the data source for the report is the application not the
database directly, it is very difficult to program it. You'll get very
frustrated having to create lots of Interfaces, ... You'll also have to
launch the Actuate application from your own code in order to create the
report templates, you will not be able to use it directly as an API to crate
such templates (or use another standard tool, e.g. and XSL editor like in
FOP). A job that will NOT be funny

As for FOP (XSLT/XSLFO combination) You not only get the maximum flexibility
and the standardization, but the performance is actually very good. You also
have the ease and flexibility to get the data in the form of XML the way you
want it (quite a lot of XML api's/tools out there.

Want my advice: Go directly for XML/XSLT/XSLFO/FOP and save your company's
money



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 2:57 PM
To: [EMAIL PROTECTED]
Subject: FOP vs. Actuate Java Edition



Hello all,

Recently we had a sales demo of the Actuate Java Edition reporting tool.
The tool provides a Swing interface to assist in formatting the layout, and
it also can connect to RDBMS data sources to provide drag-n-drop additions
of report data elements.

We're currently planning on using an FOP-based solution for our reporting
needs.  We built a fairly optimized FOP architecture which performs well --
complex PDF pages are rendered at the rate of approximately 2 pages per
second on an Intel 750 MHz box.

Question:  Does anybody out there have any experience with the Actuate Java
Edition tool?  The GUI format designer would be nice, but I'm guessing notY
as flexible as using XSL stylesheets as in FOP.  Also, would it perform
better than the FOP, as in being faster or using less memory?  I know the
Actuate tool can provide a table of contents, which is known to cause
problems when using FOP -- but I don't know if the Actuate tool suffers the
same problem (sales demos use small reports).

Any insight is greatly appreciated.

-Ryan




Page background color

2002-06-12 Thread bluetkemeier
Hello,

I am using fop-0.20.3 to generate some PDF documents. Now I wish to get a gray 
background for the document's hole pages, independent from the size of
their content.
According to the XSL-FO specification the tag fo:region-body supports an 
attribute background-color, so what I tried is the following:

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
  fo:simple-page-master page-height=841.9pt page-width=595.3pt 
master-name=spm_1
   fo:region-body background-color=#d9d9d9 
region-name=region-body/
  /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference=spm_1
  fo:flow flow-name=region-body
   fo:blockTest/fo:block
  /fo:flow
 /fo:page-sequence
/fo:root

But in the resulting PDF none gray area does appear. It would not help to use a 
tag fo:block-container background-color=#d9d9d9, because the
document's content may take several pages, so the containers height would be 
unknown.
I also tried to place a gray block-container as fo:static-content, but then 
it is in the foreground and overwrites the pages' content.
Could anybody please give me a hint how to solve my problem?

Kind regards and thanks in advance,
Bjoern Luetkemeier



Re: Page background color

2002-06-12 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
I am using fop-0.20.3 to generate some PDF documents. Now I wish to get a gray 
background for the document's hole pages, independent from the size of
their content.
According to the XSL-FO specification the tag fo:region-body supports an attribute 
background-color, so what I tried is the following:
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
  fo:simple-page-master page-height=841.9pt page-width=595.3pt 
master-name=spm_1
   fo:region-body background-color=#d9d9d9 
region-name=region-body/
  /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference=spm_1
  fo:flow flow-name=region-body
   fo:blockTest/fo:block
  /fo:flow
 /fo:page-sequence
/fo:root
But in the resulting PDF none gray area does appear. It would not help to use a tag 
fo:block-container background-color=#d9d9d9, because the
document's content may take several pages, so the containers height would be 
unknown.
I also tried to place a gray block-container as fo:static-content, but then 
it is in the foreground and overwrites the pages' content.
Could anybody please give me a hint how to solve my problem?
Afaik background-color in regions is not supported yet :(
See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3329
--
Oleg Tkachenko
Multiconn International Ltd, Israel


table-layout=fixed

2002-06-12 Thread gabor
hi,

what should i do to get rid of that


[WARN]: table-layout=auto is not supported, using fixed!

message?

i tried to put table-layout=fixed into the fo:table tag, but it
didn't help...

and btw. what's the status of tables in fop?

i understand i can't use fully dynamic tables, so i have to specify some
width info... and can i specify % as column-width?

thanks,
gabor



tabulator

2002-06-12 Thread Moebius, Yvonne



Hi,

can somebody tell me 
if there is a possibility to set tabulator positions, please? 

I need a "left 
tabulator", a "right tabulator", a "centered tabulator" and a "decimal 
tabulator", like in MS Word.

Yvonne


Re: table-layout=fixed

2002-06-12 Thread Chuck Paussa
Gabor,
Here's some sample code. Notice the use of  proportional-column-width() 
That allows you to do your percentage column widths. 
proportional-column-width allows you to proportion the widths of those 
columns not defined by a fixed width. You also need to designate the 
width of the table in the table tag.

Chuck Paussa
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
 fo:simple-page-master master-name=first-page 
page-height=285mm page-width=200mm margin-top=5mm 
margin-bottom=5mm margin-left=10mm margin-right=10mm
fo:region-body margin-top=68mm margin-bottom=20mm/
fo:region-before extent=68mm region-name=header-first/
fo:region-after region-name=footer-first extent=20mm/
 /fo:simple-page-master
 fo:simple-page-master master-name=rest-page page-height=285mm 
page-width=200mm margin-top=5mm margin-bottom=5mm 
margin-left=10mm margin-right=10mm
fo:region-body margin-top=68mm margin-bottom=20mm/
fo:region-before extent=68mm region-name=header-first/
fo:region-after region-name=footer-first extent=20mm/
 /fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=first-page
 fo:static-content flow-name=header-first 
font-family=Helvetica font-size=7pt font-weight=normal
   fo:block
  header
   /fo:block
 /fo:static-content
 fo:static-content flow-name=footer-first
fo:blockFooter/fo:block
 /fo:static-content
 fo:flow flow-name=xsl-region-body
fo:table table-layout=fixed width=180mm font-size=8pt
   fo:table-column column-width=20mm/
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-column column-width=proportional-column-width(2)/
   fo:table-header border=solid 1px black
  fo:table-row display-align=after color=black 
font-size=7pt font-family=serif font-style=normal 
font-weight=normal height=4mm background-color=transparent
 fo:table-cell border=solid 1px silver
fo:blockDATE/fo:block
 /fo:table-cell
 fo:table-cell border=solid 1px silver
fo:blockTIME/fo:block
 /fo:table-cell
 fo:table-cell border=solid 1px silver
fo:blockInfo/fo:block
 /fo:table-cell
  /fo:table-row
   /fo:table-header
   fo:table-body
  fo:table-row
 fo:table-cell border=solid 1px silver
fo:block04/18/2002/fo:block
 /fo:table-cell
 fo:table-cell border=solid 1px silver
fo:block2pm/fo:block
 /fo:table-cell
 fo:table-cell border=solid 1px silver
fo:blockAh isn't this a wonderful thing? Look 
this column is twice as wide as that other one./fo:block
 /fo:table-cell
  /fo:table-row
   /fo:table-body
/fo:table
 /fo:flow
  /fo:page-sequence
/fo:root

gabor wrote:
hi,
what should i do to get rid of that
[WARN]: table-layout=auto is not supported, using fixed!
message?
i tried to put table-layout=fixed into the fo:table tag, but it
didn't help...
and btw. what's the status of tables in fop?
i understand i can't use fully dynamic tables, so i have to specify some
width info... and can i specify % as column-width?
thanks,
gabor
 





Re: tabulator

2002-06-12 Thread Markus Wiese



Hi Yvonne,

XSL FOain't no wordprocessing application, as 
you might guess already.
It is for block-oriented layout definitions 
targeted at formatters like FOP.

If you need something aligned, you must basically 
put it in a fo:block structure
and assign attributes like text-align="left", 
text-align="center" or text-align="right"

For a nice introduction to XSL FO consult the 
tutorial section of:

http://xml.apache.org/fop/resources.html


Sorry, but to me your mail seems a bit 
like:
wrong train, wrong time, wrong 
station.

markus

  -Ursprüngliche 
  Nachricht-Von: Moebius, Yvonne [EMAIL PROTECTED]An: 
  Fop User (E-Mail) [EMAIL PROTECTED]Datum: 
  Mittwoch, 12. Juni 2002 16:41Betreff: 
  tabulator
  Hi,
  
  can somebody tell 
  me if there is a possibility to set tabulator positions, please? 
  
  I need a "left 
  tabulator", a "right tabulator", a "centered tabulator" and a "decimal 
  tabulator", like in MS Word.
  
  Yvonne


Problem printing using FOP

2002-06-12 Thread Craig Malton/Markham/IBM
Hello,
  I have a problem I can't figure out, hoping someone has done this
before.  I have a FOP program to do some printing from a Java.  I created a
Java Swing Applet that uses FOP to do the printing.  I am using code out of
FOP 0.20.3 distribution that is in org.apache.fop.apps.  I used the same
code in PrintStarter to do the printing.  The printing works fine (the page
looks as I would expect) but the really weird thing is that the output from
the print is going to the manual feed on my printer instead of to the
normal output bin.  What this means is each time I print I have to walk
over to the printer and manually feed in the pages to be
printed...obviously not a good solution :)  The same problem occurs when I
use the fop.bat program to do the printing instead of my program.  Has
anyone encountered anything like this before?  Any solutions would be
greatly appreciated.

Thanks,

Craig Malton
Advisory I/T Specialist
e-infrastructure Services WebSphere Team Leader
IBM Canada Ltd
email: [EMAIL PROTECTED]
phone: 416-410-5947
cell: 416-819-0791




Re: tabulator

2002-06-12 Thread Markus Wiese



It is probably a good idea to put it in 
table-cells, if simple block/inline structures dont do the trick.
I guess you want the period always happen at the 
same "column", for achieving that I suggest
splitting the figures in two table cells (two 
columns) with the border representing the seperator.
but for "real" decimal padding according to the 
period, I dunno.


  -Ursprüngliche 
  Nachricht-Von: Moebius, Yvonne [EMAIL PROTECTED]An: 
  '[EMAIL PROTECTED]' 
  [EMAIL PROTECTED]Datum: 
  Mittwoch, 12. Juni 2002 18:20Betreff: AW: 
  tabulator
  Hi 
  Markus, 
  
  at 
  the moment I am using tables without borders as a work-around for 
  tabulators.
  The 
  problem is toorder numbers with different decimal places among each 
  other. Like 
  12.57
  5.4
  67.
  Is 
  it possible align them?
  
-Ursprüngliche Nachricht-Von: Markus Wiese 
[mailto:[EMAIL PROTECTED]Gesendet: Mittwoch, 12. Juni 2002 
18:04An: [EMAIL PROTECTED]Betreff: Re: 
tabulator
Hi Yvonne,

XSL FOain't no wordprocessing 
application, as you might guess already.
It is for block-oriented layout definitions 
targeted at formatters like FOP.

If you need something aligned, you must 
basically put it in a fo:block structure
and assign attributes like text-align="left", 
text-align="center" or text-align="right"

For a nice introduction to XSL FO consult the 
tutorial section of:

http://xml.apache.org/fop/resources.html


Sorry, but to me your mail seems a bit 
like:
wrong train, wrong time, wrong 
station.

markus

  -Ursprüngliche 
  Nachricht-Von: Moebius, Yvonne [EMAIL PROTECTED]An: 
  Fop User (E-Mail) [EMAIL PROTECTED]Datum: 
  Mittwoch, 12. Juni 2002 16:41Betreff: 
  tabulator
  Hi,
  
  can somebody 
  tell me if there is a possibility to set tabulator positions, please? 
  
  I need a "left 
  tabulator", a "right tabulator", a "centered tabulator" and a "decimal 
  tabulator", like in MS Word.
  
  Yvonne


Re: tabulator

2002-06-12 Thread Chuck Paussa
Yvonne,
While FOP is not Microsoft Word,  it can do what you want, if you know 
what it is that you want done.

1. Left tabulatorfo:table-cell text-align=start
2. Right tabulatorfo:table-cell text-align=end
3. Center tabulatorfo:table-cell text-align=center
4. Decimal tabulatorfo:table-cell text-align=end plus you need 
to make sure that the number of digits after the decimal point are equal 
for all numbers. If they aren't equal, then add the right number of 
zeros after the number to pad it correctly wrapped in an inline element 
fo:inline font-color=white000/fo:inline

Chuck Paussa
*-Ursprüngliche Nachricht-*
*Von: *Moebius, Yvonne [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
*An: *Fop User (E-Mail) [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
*Datum: *Mittwoch, 12. Juni 2002 16:41
*Betreff: *tabulator
Hi,
 
can somebody tell me if there is a possibility to set tabulator
positions, please?
I need a left tabulator, a right tabulator, a centered
tabulator and a decimal tabulator, like in MS Word.
 
Yvonne





RE: Control of long words inside a table cell

2002-06-12 Thread pkrishnaswami
Based on the http URL given below, I used one of the sample templates and
was able to fix the problem. Thanks a lot for the help.

Prabhakar

-Original Message-
From: Roland Neilands [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 5:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Control of long words inside a table cell


 So I guess if its a single word like a full package name in
 Java where the
 package name is wider than the width of the cell,  I will
 have to force
 breaking up the package name with white space. Is this right?

If hyphenation isn't appropriate  you can't widen the column, then yes.
From a previous post by J Pietschmann:

http://www.biglist.com/cgi-bin/wilma/wilma_glimpse/xsl-list?query=zero+width
+space

Regards,
Roland




RE:How do you create an empty report

2002-06-12 Thread pkrishnaswami
Currently we use Cocoon2 to publish reports. Everything works fine as long
as there is XML data in the XML file that is dynamically generated. But when
there is no data, I get an exception on the WebServer console as below:

java.lang.RuntimeException: org.apache.fop.apps.FOPException: fo:flow must
contain block-level children
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231)
at java.lang.Thread.run(Thread.java:484)

Here is the snippet of the XSL I use for processing the XML data:

 fo:flow flow-name=xsl-region-body
xsl:apply-templates select=LogMessage /
 /fo:flow

As long as the tag LogMessage exists in the XML data file, everything  works
as designed but if the LogMessage tag does not exist because there are no
log messages, I get the above exception. Is there a way, to just publish an
empty report with just the Column headers if there is no LogMessage tag in
the XML data file . How would I modify the above snippet? I appreciate any
help on this issue.

Thanks.
Prabhakar




Re: How do you create an empty report

2002-06-12 Thread Oleg Tkachenko
pkrishnaswami wrote:
 java.lang.RuntimeException: org.apache.fop.apps.FOPException: fo:flow 
must
 contain block-level children
 at
 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231)
 at java.lang.Thread.run(Thread.java:484)

 Here is the snippet of the XSL I use for processing the XML data:

  fo:flow flow-name=xsl-region-body
 		xsl:apply-templates select=LogMessage /
  /fo:flow

 As long as the tag LogMessage exists in the XML data file, everything 
 works
 as designed but if the LogMessage tag does not exist because there are no
 log messages, I get the above exception. Is there a way, to just 
publish an
 empty report with just the Column headers if there is no LogMessage 
tag in
 the XML data file . How would I modify the above snippet? I 
appreciate any
 help on this issue.

Just give to fop what it wants - fo:block in any case.
fo:flow flow-name=xsl-region-body
fo:block
xsl:apply-templates select=LogMessage /
/fo:block
/fo:flow
--
Oleg Tkachenko
Multiconn International Ltd



SVG External Graphic ...

2002-06-12 Thread Jose Hernandez

Hello ...

I'm using the JDK 1.4.0 with FOP 0.20.3 and I created a SVG file that I'm
trying to put into a PDF file ... but FOP sent this error message:

[ERROR]: svg graphic could not be built: file:e:/test.svg:-1
An I/O error occured while processing the URI 'file:e:/test.svg#clipPath1'
specified on the element rect
org.apache.batik.bridge.BridgeException: file:e:/test.svg:-1
An I/O error occured while processing the URI 'file:e:/test.svg#clipPath1'
specified on the element rect
at
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)

I've attached the svg file ...

Have any idea about this ?

Thanks.

 test.svg 

//jose.alberto.hernandez.maldonado

System Integrator Engineer.
Algorithmics Mexico.

Tel.  5520-4293
Fax. 5520-4292
e-mail:
[EMAIL PROTECTED]
[EMAIL PROTECTED]



test.svg
Description: Binary data