Re: Improving FOP Performance? -

2005-02-12 Thread Markus Rietzler
this would also be my suggestion. at the moment we are also using fop as 
a command line script. when finishing the webapplication i will create a 
java servlet that runs under tomcat. first tests show a perfomance boost 
of 50%. mainly because the JVM must not be started every time, this 
overhead is being saved using tomcat and fop as java-servlet.

hope to see a few more suggestions...
markus
-Jesiolowski, Dominik [EMAIL PROTECTED] wrote: -
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
From: Jesiolowski, Dominik [EMAIL PROTECTED]
Date: 02/11/2005 07:13AM
Subject: RE: [***SPAM***] - Improving FOP Performance? - Bayesian Filter 
d etected spam

  Hello,
  We are using FOP to convert to generate PDF Invoices
  for our Customers. We need to generate roughly around
  25,000 Invoices Per Month and the Number would
  increase each Month. We generate PDF Docs from XML
  Input Files. We had Trial runs to check for
  Performance and Memory usage.
  Currently, We are just invoking FOP command directly
  from a Shell Script which would call the FOP Command
  repeatedly but making sure that not more than 2 (or
  sometimes 3) FOP Processes are running at any instant.
So you are starting, and stopping JVM, each time
you run fop. Consider writing java app that invokes
fop processing in a loop.
Regards
Dominik

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


Re: representative example needed

2005-02-05 Thread Markus Rietzler
we are using FOP to generate tickets for an online-ticketing-solution.
for certain events listed in our online calendar it is possible to order 
tickets online. payments in the online-shop are handled via bank account 
or credit card. after purchase the ticket is produced as a pdf document.
this pdf file can be downloaded and printed out and provides all infos 
to attend the event.

at the moment we are working to implement a seat reservation module for 
our online ticket shop.

markus rietzler
RIETZLER_SOFTWARE/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enhancing FOP command line speed

2004-08-13 Thread Markus
Markus wrote:
Jeremias Maerki wrote:
Why not install Tomcat, deploy the FOP servlet [1] and then access FOP
using HTTP GET requests? Should be simple using PHP.
[1] http://xml.apache.org/fop/servlets.html
I also remember someone having posted that he has written a web service
around FOP. Look in the archives.
On 09.08.2004 11:08:05 Sonke Ruempler wrote:
Maybe someone has written a small JAVA daemon yet? I would prefer this
solution from my PHP scripts.


today i played around with tomcat and fop embedded in a servlet. looks 
promising. when i solve some small probs it could be a good way to go. 
the time to generate pdfs is much smaller than with fop on command line.

i will post my results when i am a little further
markus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


problem using svg:font-face-uri when using fop-embedded servlet (was command line performance)

2004-08-13 Thread Markus
i have a working xsl.
in this xsl i am using
svg:font-face font-family=BoldSVG
  svg:font-face-src
svg:font-face-uri xlink:href=/path/to/fonts.svg#BoldSVG
/svg:font-face-uri
  /svg:font-face-src
/svg:font-face
this is working, when calling fop from command-line. the pdf is 
generated and

svg:g fill=black stroke=none
   font-size=48pt font-weight=normal font-family=BoldSVG
svg:text x=5mm y=55.5mmKiki/svg:text
in my pdf there is a svg-graphic with the word Kiki written in my font.
i just try to use fop in a servlet running under tomcat. there is a huge 
difference in runtime (*). after reading the faq i should use

svg:font-face-uri xlink:href=url('/path/to/fonts.svg#BoldSVG')
the only problem is, that i get an error in catalina.out saying:
An I/O Error occured while processing the URI 
'url(/path/to/fonts.svg#BoldSVG)' specified on the elment font-face-uri.
at org.apache.batik.bridge.BridgeContext.getReferencedElement

thanxs
markus
(*) run times:
when calling
  time fop.sh -xsl in.xsl -xml in.xml -pdf out.xml -c my.xml
i get
   real 7.27s
   user 6.68s
   sys  0.10s
when calling
  time wget 
http://localhost:8080/fop?xsl=in.xslxml=in.xmlpdf=out.xml; -O out.log

i get
  real 2.27s
  user 0.009s
  sys  0.003s
looks promising. when i get everything working i will switch from 
calling command-line-fop to tomcat-servlet-fop

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


Re: problem using svg:font-face-uri when using fop-embedded servlet (was command line performance)

2004-08-13 Thread Markus
J.Pietschmann wrote:

Somehow suspect you got something wrong. The uri() is for
XSLFO sources, SVG uses XLink which ought to use plain URIs.
Don't confuse the two.
thanxs,
that was the problem.
when using
svg:font-face-uri xlink:href=file:///path/to/fonts.svg#BoldSVG
it is working like a charm ;-)
it is sometimes hard, when you try use stuff you not really know very 
well. it was a hard process of trial and error to get all the stuff 
working. but now i can gernate pdfs from my webapp. the pdf contains 
some svg-graphs, some are embedded in the xsl-file some are external and 
i also use a special font to print text in svg


  time wget 
http://localhost:8080/fop?xsl=in.xslxml=in.xmlpdf=out.xml; -O out.log
...
  real 2.27s
  user 0.009s
  sys  0.003s

Note that you timed the download process, which is not the
same as the creation. 
no, sorry
maybe i had to tell, that i am using a FopFile-servlet, patched from 
the example-servlet. my servlet only returns a h1finished/h1, the 
PDF (220k) is written to the file system.

I also doubt that JVM startwarmup is
really 4 seconds, unless you used a rather outdated machine
for the CLI measurement. I'd think there is some caching
involved.
both times are taken from the same machine. i use the java that was 
coming with suse 9.0

Java HotSpot(TM) Client VM (build 1.4.2b28, mixed mode)
i have put some logging in the servlet (times with millisec):
13.08.2004 22:27:34 223 [Fop] start pdf=1234.pdf - xml=1234.xml
[WARNING] 13.08.2004 22:27:34 223 -- 1) Caling XSLTInputHandler
[WARNING] 13.08.2004 22:27:34 273 -- 2) Caling renderXML
[WARNING] 13.08.2004 22:27:34 273 -- 3) new Driver
[WARNING] 13.08.2004 22:27:34 274 -- driver.render
[WARNING] 13.08.2004 22:27:37 843 -- driver.render finish
[WARNING] 13.08.2004 22:27:37 844 -- 4) new File
[WARNING] 13.08.2004 22:27:37 846 -- 5) Output ready
13.08.2004 22:27:37 846 [Fop] stop pdf=1234.pdf xml=1234.xml
i am sure, there is some additional optimation, like
http://xml.apache.org/fop/servlets.html#performance
also the above logging is done very simple...
but this is the first time that i am hacking a java-programme.
the next challenge is to include the coding from pdftrans to the 
servlet, so that i can set doc-info and security of the pdf...

at the moment i use a combination of fop and pdftrans - both called from 
a shell-script - to get the final pdf... with the tomcat solution i can 
save some seconds and reduce the time our users have to wait until the 
you can download your ticket-link apears in the browsers...

sorry for all that trouble ;-)
markus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enhancing FOP command line speed

2004-08-11 Thread Markus
Jeremias Maerki wrote:
Why not install Tomcat, deploy the FOP servlet [1] and then access FOP
using HTTP GET requests? Should be simple using PHP.
[1] http://xml.apache.org/fop/servlets.html
I also remember someone having posted that he has written a web service
around FOP. Look in the archives.
On 09.08.2004 11:08:05 Sonke Ruempler wrote:
Maybe someone has written a small JAVA daemon yet? I would prefer this
solution from my PHP scripts.

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

thanxs for this hint. i also found some fop-stuff in apache cocoon - 
maybe another approach.
but don't know, whether tomcat/cocoon is the right way - maybe only to 
test performance. our web app don't return the pdf directly to the 
browser. the pdf should be saved in the filesystem an then the user gets 
a response page and an email both having the link to download the pdf.
i also use itext to define user permissions set some document infos...

i will look around it as soon as time allows it...
markus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Enhancing FOP command line speed

2004-08-05 Thread Markus
Sonke Ruempler wrote:
There is a PHP PEAR module (XML_fo2pdf) that utilizes the java engine and
fop, but the JAVA extension of PHP is unstable and does no caching. I was
thinking of a Deamon that processes the .fo file ...

Once you find out how that can be done, I would then
move away from a FOP command line to an FOP-embedded
program (see http://xml.apache.org/fop/embedding.html
for examples) that you can keep active for your
multiple documents.

I don't know any stable solution and caching embedding solution for PHP :-(
any solutions or further hints so far?
we are setting up a web application which allows our customers to buy 
online tickets to events from our event calender. the ticket is produced 
as pdf and the customer can print it out at home. the generation of the 
tickets lasts a few seconds, we are using several komplex svg-graphics 
and barcode and other stuff to produce a not-so-easy-to-fake-ticket.

so we would like to see a very fast pdf generation. our environment is 
perl on linux. whicht tipps to speed up generation? so far it seems to 
make not much differnce wheter i call fop

fop -xsl ticket.xsl -xml ticket.xml -c myconfig.xml -pdf ticket.pdf
or first produce the fo-file with xalan and then do
fop -fo ticket.fo -pdf ticket.pdf
so it seems that the xslt-transformation is not time consuming, it is 
only one page of pdf, so it should be no problem...

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


Need help with fo:leader

2004-06-29 Thread Markus Bruns
Hi Everybody,

I have a table with this little piece of code in it:

fo:table-cell background-color=#FBFBFF border-top=0.5pt solid black
padding-right=5.4pt
fo:block line-height=11.4pt
fo:leader line-height=11.4pt/
/fo:block
/fo:table-cell

The fop 0.20.5 lib throws an Error: [ERROR] leader sizes wrong

But the pdf ist gernerated and ok.

What must I do to avoid this Error?

Greetings,
Markus


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



display-align and block-container (fop-0.20.4)

2003-10-16 Thread Markus Schaeffler
Hi,

I want to vertically align text within an absolute positioned
block-container. Is that possible ? I thought of using display-align=befor / 
after /
center.
There are some examples for table-cells
(http://xml.apache.org/fop/fo.html#fo-center-vertical) but I found no further 
information on block-container.
Only the fop-compliance page says that it is partial implemented.

It would be great if somebody could provide me with an example.


-- 
Thanks

Markus Schäffler
--

NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


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



RE: FOP With Hebrew

2003-10-06 Thread Markus Schutz
As far as I know, FOP does not support bidi languages such as Hebrew and
Arabic.
Please refer to http://xml.apache.org/fop/compliance.html and look for
attributes such as writing-mode. You will see that this attribute is not
supportes, thus allowing only for left-to-right and top-to-bottom modes.
Alas, I don't know any remedy, perhaps somebody else has found a workaround.

Regards,
Markus

-Original Message-
From: Shlomi Fish [mailto:[EMAIL PROTECTED]
Sent: Montag, 6. Oktober 2003 13:48
To: FOP Users
Subject: FOP With Hebrew


I tried to convert the Attached DocBook document to PDF using FOP and the
Hebrew came in reverse. Is it a problem of FOP or of DocBook. (the XSL-FO is
also attached)

If it is a problem with FOP, when is it planned to be resolved and what can
I
do to help?

Regards,

Shlomi Fish
--

-
Shlomi Fish  [EMAIL PROTECTED]
Homepage: http://t2.technion.ac.il/~shlomif/

I don't believe in fairies. Oops! A fairy died.
I don't believe in fairies. Oops! Another fairy died.


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



Fulltext search and true type fonts

2003-09-23 Thread Markus Schütz
Hello everybody,

I've observed that the behavior of PDF documents rendered by FOP is a bit
strange when it comes to fulltext search in the Adobe Acrobat Reader:
With Adobe's default fonts such as Helvetica and PS fonts, fulltext search
is supported, with TT fonts it's not. When you search for a keyword, you
will get no hits though you might see the keyword right on the screen.
On the other hand, the PDFs look very well even with TTF so there shouldn't
be any problem with font embedding.
I used FOP 0.20.5 on a win2k system and tried some standard Windows fonts
such as Arial.

Is this a known problem? Is there any workaround?

Thanks for any information or hint,


Markus Schütz
DataDax EDV-Lösungen GmbH
Schwabacher Straße 117
90763 Fürth
Tel: +49 (0)911 / 97081-10
Fax: +49 (0)911 / 97081-81
[EMAIL PROTECTED]
www.datadax.de


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



RE: Fulltext search and true type fonts

2003-09-23 Thread Markus Schütz
Thank you for sending the link to the archives.

Maybe only the workaround IS to use default fonts (which doesn't help when
you have a document with characters that are not part of ISO-8859-1, say
Polish or Russian) or PS fonts (which means paying in quite a number of
cases).

Regards,

Markus

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. September 2003 10:32
To: [EMAIL PROTECTED]
Subject: Re: Fulltext search and true type fonts


From: Markus Schütz [EMAIL PROTECTED]


snip/

With Adobe's default fonts such as Helvetica and PS fonts, fulltext search
is supported, with TT fonts it's not. When you search for a keyword, you
will get no hits though you might see the keyword right on the screen.

This is a known problem, and I dont believe there is a work around. I
couldnt remember the exact technical reason, but a quick search of the
archives revealed it:

http://marc.theaimsgroup.com/?l=fop-userm=105177492023195w=2

snip/

Chris

_
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile


-
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: TXT Problems

2003-08-05 Thread Markus Schütz
Hello Susann,

why do you use FOP at all?
In my opinion it is much easier (and more convenient as well) to use the
text output feature of your XSLT processor. This is so convenient that I've
never tried text output via FOP at all.
The advantage is that you will be able to control the whitespace in the
output document, which seems to be your main problem. Plus you don't have to
worry about FO syntax when it comes to writing your output stylesheets.
Please note that you can do all the formatting such as indents, blank
lines and capitalisation by means of standard XSLT tools such as xsl:text/
and translate().

I admit that this task gets a bit harder when it comes to tables, since you
have to care for the column alignment yourself. But you can solve this
problem easily at last for cells by counting the number of characters in one
cell and adding the missing number of space characters. You can improve your
results by specifing the column width as a parameter and trying different
values for this.
This should work alt least for tables without line breaks within the cells,
which is obviously the case in the examples you added.

Maybe this is a helpful idea for you.

Best regards,
Markus

-Original Message-
From: Todtenhaupt, Susann [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 5. August 2003 13:07
To: '[EMAIL PROTECTED]'
Subject: TXT Problems


Hi @ all!

I'm trying to generate TXT from XML through xsl and fop. In my result
txt-file there are several problems I don't understand...
(1) whitespaces between words in one line are stretched
(2) I create several rows and there are always two of them near together and
then there's a line between the next two rows

Can anybody give support?

(see attached files)

million thanx
suse



-
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: Status of MIF Output

2003-08-01 Thread Markus Schutz
I'm not quite sure whether the situation has changed so much since Frame
7.0.
The old EDD concept is still in place, and everyone who has ever attempted
to map an XML structure to a FrameMaker template knows how tedious a job
this is.
Even if you want to customise the default DocBook application to meet your
own demands you'll get not that far within a reasonable amount of time!

Thus, MIF output would be a nice thing to have, but I'm afraid I'm not the
one to do that, at least not now (I agree with you, there are more urgent
issues).

Markus Schutz

-Original Message-
From: Victor Mote [mailto:[EMAIL PROTECTED]
Sent: Freitag, 1. August 2003 17:06
To: [EMAIL PROTECTED]
Subject: RE: Status of MIF Output


Timo Haberkern wrote:

 can anybody tell me the status of the MIF output renderer. I read in the
 documentation that it is not fully implemented, but whats implemented
 and what is not? Does anybody use it in a productive way?

Almost nothing is implemented. It creates the master pages and can put
fo:block elements into paragraphs, but that is about it. The infrastructure
is in place to do a lot more. However, since Frame 7.0, all Frame users have
the ability to directly manage the semantic XML document, so there is not
much interest. Unless funding is provided along the way, I think it will be
one of the last things to be addressed. Also, if a developer came along who
wanted to work on it, we could provide some assistance.

Victor Mote


-
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: [ANNOUNCEMENT] FOP 0.20.5 released

2003-07-18 Thread Markus Schutz
Hi,

glad to hear about the new FOP release.
Something that I still miss (and maybe I'm not the only one) is support for
properties like 'keep-with-next' or 'page-break-after=avoid'. When it
comes to customer projects, lacking support for these properties is in most
cases the knockout for FOP - users would not like to see a heading on the
buttom of one page and the first paragraph on the top of the next page.
Please note that is not always possible to use the blind table workaround!
I know, it's not an easy task to implement, but would one of the FOP
developpers like to tell me whether there is a timeline when these
properties will be supported?

Thanks,
Markus

-Original Message-
From: Christian Geisert [mailto:[EMAIL PROTECTED]
Sent: Freitag, 18. Juli 2003 17:03
To: fop-dev@xml.apache.org; [EMAIL PROTECTED];
announcements@xml.apache.org
Subject: [ANNOUNCEMENT] FOP 0.20.5 released


Hi all,

the FOP team is pleased to announce the release of FOP 0.20.5

Binary and source distributions are available at:
http://www.apache.org/dyn/closer.cgi/xml/fop

Changes since 0.20.4 include:

- Added support for PDF encryption
- Perfomance tuning
- Fixed link hotspot positioning
- Fixed multi-threading issues
- Added support for CCITT Group 4 encoded TIFF files
- Dynamic JAI support
- Added autoselecting portrait/landscape for PCL and PS Renderer
- Added continued-label extension for tables
- Improved AWT Font-measuring/rendering
- Improved marker handling
- Fixed problem with jpegs with icc profile and acrobat reader 5
- Added a fontBaseDir property
- TXTRenderer output encoding
- border-spacing support
- and a lot more bugfixes

For details see the CHANGES file:
http://cvs.apache.org/viewcvs.cgi/xml-fop/CHANGES?rev=1.10.2.64

For more information about FOP see http://xml.apache.org/fop

Please send feedback/bugreports to the mailing list or enter them
in Bugzilla.

Enjoy,
Christian






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



AW: checkbox

2003-07-10 Thread Müller, Markus
Hi,

First, #x means character code in hexadecimal, correct.
Second, using Windows' charmap.exe you can browse your fonts.
In Wingdings the characters 0x70 and 0x78 show an unchecked / checked checkbox.

Markus


$ -Ursprüngliche Nachricht-
$ Von: Todtenhaupt, Susann 
$ [mailto:[EMAIL PROTECTED] 
$ Gesendet: Donnerstag, 10. Juli 2003 10:39
$ An: '[EMAIL PROTECTED]'
$ Cc: '[EMAIL PROTECTED]'
$ Betreff: AW: checkbox
$ 
$ 
$ Hello!
$ 
$ I've never before embedded special symbols in fo. Why do you 
$ write #x?
$ Does the x mean hexadecimal? I'm wondering because I've 
$ tried to find the
$ symbol by looking for a symbol from ZapfDingbats with 274F 
$ (hex) in my
$ window-system, but couldn't find it. Can you give more 
$ support, please? :-)
$ thanx in advance!!
$ 
$ suse
$ 
$ -Ursprüngliche Nachricht-
$ Von: Torsten Erler [mailto:[EMAIL PROTECTED] 
$ Gesendet: Tuesday, July 08, 2003 9:42 AM
$ An: [EMAIL PROTECTED]
$ Betreff: RE: checkbox
$ 
$ Hi,
$ 
$ either you use the (unchecked) checkbox from ZapfDingbats Font
$ 
$ fo:inline font-family=ZapfDingbats 
$ font-size=10pt#x274F;/fo:inline
$ 
$ or draw it by yourself (svg requires batik.jar) like that:
$ 
$ !-- checked checkbox (50% scaled down) --
$ fo:instream-foreign-object width=11pt height=11pt
$   svg:svg width=22 height=22 xml:space=preserve
$ svg:g transform=scale(.5) style=fill:none; stroke:black;
$ stroke-width:2
$   svg:rect x=0 y=2 fill=black width=20 height=20
$ stroke-width=1/
$   svg:rect x=2 y=0 fill=white width=20 height=20
$ stroke-width=1/
$   svg:line x1=6 y1=10 x2=12 y2=17/
$   svg:line x1=12 y1=17 x2=20 y2=3/
$ /svg:g
$   /svg:svg
$ /fo:instream-foreign-object
$ 
$ cu Torsten
$ 
$  -Original Message-
$  From: Todtenhaupt, Susann
$  [mailto:[EMAIL PROTECTED]
$  Sent: Dienstag, 8. Juli 2003 08:39
$  To: '[EMAIL PROTECTED]'
$  Subject: checkbox
$ 
$ 
$  Hi @ all!
$ 
$  How is it possible to create with xsl:fo checkboxes in a pdf-file?
$ 
$  Thanx in advance!
$ 
$ 
$  
$ -
$  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]
$ 

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



AW: font embedding problem (embed-file attribute)

2003-06-30 Thread Müller, Markus
Hi,

try to NOT omit the embed-file attribute, but setting ist value to an empty
string:

font
metrics-file=file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/ARIALUNI.XML
kerning=yes embed-file=

Markus

$ -Ursprüngliche Nachricht-
$ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 30. Juni 2003 12:46
$ An: [EMAIL PROTECTED]
$ Betreff: font embedding problem (embed-file attribute)
$ 
$ 
$ Hello,
$ 
$ I'm using fop-0.20.4 and jdk 1.4.0. I'm embedding a True 
$ Type Font into my
$ documents. Thats works great. Here is a snippet from my 
$ userconfig.xml file:
$ 
$ font
$ metrics-file=file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/AR
$ IALUNI.XML 
$kerning=yes 
$
$ embed-file=file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/ARIA
$ LUNI.TTF
$   font-triplet name=ArialUnicodeMS style=normal 
$ weight=normal/
$   font-triplet name=ArialUnicodeMS style=italic 
$ weight=bold/
$   font-triplet name=ArialUnicodeMS style=normal 
$ weight=bold/
$   font-triplet name=ArialUnicodeMS style=italic 
$ weight=normal/
$ /font
$ 
$ 
$ But if I remove the embed-file attribute I end up with an 
$ error. What is the
$ propper way to only reference the font?
$ 
$ 
$ This is my changed userconfig.xml file:
$ 
$ font
$ metrics-file=file:D:/Asfr/unchangedfopsrc/fop-0.20.4/conf/AR
$ IALUNI.XML 
$kerning=yes 
$   font-triplet name=ArialUnicodeMS style=normal 
$ weight=normal/
$   font-triplet name=ArialUnicodeMS style=italic 
$ weight=bold/
$   font-triplet name=ArialUnicodeMS style=normal 
$ weight=bold/
$   font-triplet name=ArialUnicodeMS style=italic 
$ weight=normal/
$ /font
$ 
$ 
$ This is the error message I get:
$ 
$ [INFO] FOP 0.20.4
$ [INFO] building formatting object tree
$ [ERROR] Failed to read font metrics file
$ D:/Asfr/unchangedfopsrc/fop-0.20.4/conf
$ /ARIALUNI.XML : null
$ [INFO] [1]
$ [ERROR] unknown font ArialUnicodeMS,normal,normal so 
$ defaulted font to any
$ [ERROR] unknown font ArialUnicodeMS,normal,normal so 
$ defaulted font to any
$ [ERROR] unknown font ArialUnicodeMS,normal,normal so 
$ defaulted font to any
$ [INFO] [2]
$ 
$ 
$ 
$ Please note: I only changed the userconfig.xml. The 
$ font-metrics file is
$ still there.
$ 
$ 
$ -- 
$ Thanks for any help
$ 
$ Markus Schäffler
$ --
$ 
$ +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
$ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
$ 
$ 
$ -
$ 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]



AW: external-graphic problem

2003-06-25 Thread markus . mueller
Hi,
try fo:external-graphic src=star_white.gif/. 

Markus

$ -Ursprüngliche Nachricht-
$ Von: [EMAIL PROTECTED] 
$ [mailto:[EMAIL PROTECTED] 
$ Gesendet: Mittwoch, 25. Juni 2003 10:47
$ An: [EMAIL PROTECTED]
$ Betreff: fo:external-graphic  problem
$ 
$ 
$ 
$ Hello,
$ 
$ I have a problem when i use the fo:external-graphic tag.
$ I use FOP and i have this error when i try to parse the fo file:
$ 
$ 
$ Unsupported element encountered: external-graphic (Namespace 
$ : Default)
$ Source context: ...
$ 
$ Expected XSL-FO (root,, page sequence,etc.), SVG (svg, rect, etc.) or
$ element from another supported language.
$ 
$ ...
$ 
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ 
$ ...
$ 
$ 
$ This is my code:
$ 
$ external-graphic src=star_white.gif/
$ 
$ 
$ Have you an idea?
$ 
$ 
$ Thanks
$ 
$ Sébastien
$ 
$ 
$ 
$ 
$ The contents of this E-mail are confidential and may contain 
$ privileged information to the sole intended recipient at the 
$ E-mail address to which it has been addressed. It may not be 
$ disclosed to our used by anyone other than the addressee, 
$ nor may it be copied or forwarded in any way without the 
$ consent of the sender.
$ The sender hereby make no representation as to the accuracy, 
$ completeness for a particular purpose of the information 
$ provided in this E-mail. No binding commitment from the 
$ sender may be inferred by means of E-mail communications.
$ Please note that the sender accepts any responsibility for 
$ viruses and it is your responsibility to scan the E-mail and 
$ attachments (if any). 
$ If received in error, please reply by mail to the sender or 
$ contact the sender by phone (+352) 45 67 301, and then 
$ delete it from your system.
$ 
$ 
$ -
$ 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]



AW: Performance Question

2003-05-02 Thread Müller, Markus
Hello Ryan,

you're writing about a stylesheet-cache. How did you implement it? Do you
use XSLTC or do you reuse the InputHandler object (according to the
documentation, it can be reused).

Markus

$ -Ursprüngliche Nachricht-
$ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
$ Gesendet: Freitag, 2. Mai 2003 14:16
$ An: [EMAIL PROTECTED]
$ Betreff: Re: Performance Question
$ 
$ 
$ 
$ 
$ Sorry, I should have included these details also:
$ 
$ Our PDFs are produced during a batch process, meaning the 
$ JVM is started
$ once and all PDFs are then created.  This, of course, means 
$ the JVM stays
$ warm and we can take full advantage of HotSpot compilation.
$ 
$ We also have implemented a style sheet cache, so once the 
$ style sheet has
$ been used once the compiled version is reused over and over, which
$ definitely helps performance.
$ 
$ All of our XML/XSLT interfaces use JAXP, meaning we can plug 
$ in different
$ XML/XSLT processors.  We currently use Saxon 6.5.2 because it's the
$ fastest, but it appears the recently-released Xalan 2.5 has 
$ closed the gap
$ considerably.
$ 
$ Even though the computer has 1 GB RAM available, we only 
$ allocate a max
$ heap size of 512 MB.
$ 
$ 
$ 
$ 
$  
$   
$   [EMAIL PROTECTED]  
$   
$   ul.com   To:   
$ [EMAIL PROTECTED]   
$cc:   
$   
$   05/02/2003 06:58 Subject:  Re: 
$ Performance Question  
$   AM 
$   
$   Please respond to  
$   
$   fop-user   
$   
$  
$   
$  
$   
$ 
$ 
$ 
$ 
$ 
$ I have FOP running on a Pentium 4 2.54 GHz computer with 1 
$ GB memory and
$ Win2000.  I use Saxon 6.5.2 as the XML parser and XSLT 
$ engine.  It also
$ uses custom XMLReaders to produce SAX events which are 
$ processed by FOP.
$ 
$ We usually see a PDF production rate of 8-9 pages per second, and we
$ sometimes produce PDFs that are 1500+ pages.  The only real 
$ problem with
$ FOP is some of the XSL style sheet tricks necessary to 
$ insert intermittent
$ page-sequences so FOP doesn't run out of memory.
$ 
$ Hope this helps.
$ 
$ 
$ 
$ 
$   Christian
$ 
$   Neuroth To:
$ [EMAIL PROTECTED]
$   [EMAIL PROTECTED]cc:
$ 
$Subject:  Performance
$ Question
$   04/30/2003 03:30
$ 
$   AM
$ 
$   Please respond to
$ 
$   fop-user
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ In my company, we are currently using StreamServe to produce 
$ documents
$ (basically invoices).
$ 50.000 docs/day, 3.000 prints, 47.000 pdf.
$ The final document averages 3 pages (there are some 
$ exceptions with up to
$ 1000 pages - very rare, however), a document containing only 
$ one graphic
$ (logo).
$ 
$ I am puzzling whether I can shift from StreamServer to FOP. 
$ Are there any
$ people out there who apply FOP to achieve a similar volume? Is the
$ performance ok?
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ -
$ 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]



AW: Illegal 'retrieve-boundary' value error after upgrading to 0.20.5rc2

2003-04-23 Thread Müller, Markus
Hi,

the bug (see below) described in this thread of messages 
still exists in 0.20.5rc2. So I tried with the current 
CVS version, thinking the bug is fixed there. Then the
following error occurs:

Exception in thread main java.lang.NoSuchFieldError:
java.util.Collections: field EMPTY_MAP not found at
org.apache.fop.layout.FontState.getKerning(FontState.java:142)

The error occurs in both cases, specifying a separate font metrics file and
omitting the whole userconfig.xml.

So is there a chance to get a FOP version without that bug and without other
severe bugs??



Markus


$ -Ursprüngliche Nachricht-
$ J.Pietschmann [EMAIL PROTECTED] on 04/18/2003 08:12:40
$  =first-including-carryover retrieve-boundary=page 
$ retrieve-class-name
$  =marker__manifest_id/
$ 
$ Ouch, I misread the message. You triggered a bug in 0.20.5rc2. This
$ happens if retrieve-boundary=page but no matching marker could
$ be retrieved from the page. 

$ [...]

$ The problem with the exception is fixed, but you'll still get
$ nothing instead of the desired marker. There is no good workaround
$ for this problem. You can try to use retrieve-boundary=document.
$ 


$ J.Pietschmann

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



AW: AW: Illegal 'retrieve-boundary' value error after upgrading to 0.20.5rc2

2003-04-23 Thread Müller, Markus
Yes, there went something wrong! I will try to find the correct sources...

Markus

$ -Ursprüngliche Nachricht-
$ Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
$ Gesendet: Mittwoch, 23. April 2003 13:12
$ An: [EMAIL PROTECTED]
$ Betreff: Re: AW: Illegal 'retrieve-boundary' value error 
$ after upgrading to 0.20.5rc2
$ 
$ 
$ In the latest maintenance branch sources access to the field 
$ EMPTY_MAP
$ is at line 197, not in line 142 as you said. Are you sure 
$ you've got the
$ right sources? The $Id$ of my FontState.java here is:
$ $Id: FontState.java,v 1.14.2.8 2003/03/02 16:55:15 pietsch Exp $
$ 
$ 
$ On 23.04.2003 12:54:18 Müller, Markus wrote:
$  the bug (see below) described in this thread of messages 
$  still exists in 0.20.5rc2. So I tried with the current 
$  CVS version, thinking the bug is fixed there. Then the
$  following error occurs:
$  
$  Exception in thread main java.lang.NoSuchFieldError:
$  java.util.Collections: field EMPTY_MAP not found at
$  org.apache.fop.layout.FontState.getKerning(FontState.java:142)
$  
$  The error occurs in both cases, specifying a separate font 
$ metrics file and
$  omitting the whole userconfig.xml.
$  
$  So is there a chance to get a FOP version without that bug 
$ and without other
$  severe bugs??
$ 
$ 
$ 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]



Problem with fo:marker and keep-with-next in tables

2003-04-22 Thread Müller, Markus
Hi *,

We want to list some items on an invoice using a table. It is possible, that
not all items fit into a single page. So we allow following pages, but then
we have to print a carry over at the end and the beginning of each page. The
computation is not the problem, we do this by adding appropriate attributes
to the items' corresponding xml-elements. The carry over values then are
placed into markers. Additionaly, always 3 items (= fo:table-rows) are set
to keep together using keep-with-next=always. Doing so, retrieving the
markers fails (first-starting and last-ending). FOP returns a marker NEAR
the correct marker, sometimes even the correct one. This feature seams to be
nondeterministic.

Jochen Unger asked the same question a few weeks ago, but there were no
answers in the mailing list. 

Is there a solution for this problem???

BTW, it seems that the markers' is_first / is_last attributes are set BEFORE
the keep-xxx directives are processed.

Markus  

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



keep-with-next not working in tables bigger than two pages

2003-04-22 Thread Müller, Markus
Hi all,

according to the compliance document, keep-with-next is supported on table
rows. The sample file keep.fo also demonstrates keep-with-previous working.
But extending that sample in a way, that a table does not fit on two pages,
the keep-directives do not work any more. Making separate tables fitting on
max. two pages solves this problem.

Is this a known bug? Is there a workaround (NOT splitting tables)?

Markus

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



AW: Manual line breaks

2003-04-14 Thread Müller, Markus
Hi Matthias,

you can find several XSL:FO samples using a tag like br/ to specify line
breaks, using the template
...
 xsl:template match=br
   fo:block/
 /xsl:template
...
For detailed information see
http://www.biglist.com/lists/xsl-list/archives/200202/msg01290.html

MM

$ -Ursprüngliche Nachricht-
$ Von: Matthias Brunner [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 14. April 2003 10:37
$ An: [EMAIL PROTECTED]
$ Betreff: Manual line breaks
$ 
$ 
$ Hello!
$ 
$ In a perfect XML world content is always separatable from 
$ presentation. Unfortunately, there are cases (at least in 
$ publishing) when this is simply not possible. For example, we need 
$ to provide the possibility to insert manual breaks into text 
$ (especially titles).
$ 
$ Web research tells me that whitespace-treatment=preserve is a 
$ solution to this, yet unimplemented by FOP.
$ The only workaround I have found so far is to sorround the position 
$ at which the line should be broken with non-break spaces.
$ (Example: this#xA0;is#xA0;a#xA0;test !-- intended break position 
$ -- this#xA0;is#xA0;a#xA0;test.)
$ 
$ Has anyone found a better solution to this?
$ 
$ Cheers,
$ Matthias Brunner
$ 
$ -
$ 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]



AW: Chinese character in bold

2003-04-14 Thread Müller, Markus
Hi,

AFAIK you have to generate different XML font metrics files for different
font styles / weigths, so your userconfig.xml should look like this:

font metrics-file=D:\fop\fop-0.20.4\conf\MingLiU.xml
embed-file=C:\winnt\fonts\mingliu.ttc kerning=yes
 font-triplet name=MingLiU style=normal weight=normal/
/font
font metrics-file=D:\fop\fop-0.20.4\conf\MingLiUBold.xml
embed-file=[dont know] kerning=yes
 font-triplet name=MingLiU style=normal weight=bold/
/font
and so on.

Markus

$ -Ursprüngliche Nachricht-
$ Von: Lee Fergus [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 14. April 2003 11:32
$ An: '[EMAIL PROTECTED]'
$ Betreff: Chinese character in bold
$ 
$ 
$ Hi all,
$ 
$ I have problem showing chinese characters in bold.  I have 
$ generated the
$ MingLiU.xml file with the TTFReader utility from the 
$ mingliu.ttc file and
$ here's what I put inside my userconfig.xml
$ 
$  font metrics-file=D:\fop\fop-0.20.4\conf\MingLiU.xml
$ embed-file=C:\winnt\fonts\mingliu.ttc kerning=yes
$ font-triplet name=MingLiU style=normal weight=normal/
$ font-triplet name=MingLiU style=normal weight=bold/
$ font-triplet name=MingLiU style=italic weight=normal/
$ font-triplet name=MingLiU style=italic weight=bold/
$  /font
$ 
$ The resulting PDF file can shows Chinese character when the 
$ font-family is
$ set to MingLiU.  However, when I set the weight=bold, the 
$ character is
$ still show as normal.
$ 
$ Is there anything that I'm doing wrong or missing out?
$ 
$ Regards,
$ Fergus Lee
$ 

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



AW: Chinese character in bold

2003-04-14 Thread Müller, Markus
Hi,

I think you generate the font metrics file in the right way. MS Word can
display fonts in bold, even when there is no special font file available,
that's right. Sorry, I don't know, if there is a solution in FOP to create a
bold font xml without the appropriate font file. 

== Does anybody else in this mailing list know, how to do that ???

The FOP website does not tell anything about this...

MM

$ -Ursprüngliche Nachricht-
$ Von: Lee Fergus [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 14. April 2003 11:49
$ An: '[EMAIL PROTECTED]'
$ Betreff: RE: Chinese character in bold
$ 
$ 
$ Hi Markus,
$ 
$ Thanks for your timely response.
$ Unlike other fonts which have different files for different 
$ weight/style
$ (like arialb.ttf, ariali.ttf for Arial), I can only find one file
$ mingliu.ttc for the MingLiU font.  Furthermore, MS Word is 
$ able to show
$ MingLiU in bold.
$ 
$ Is there any special parameters that I should use in 
$ generating the metrics
$ file for bold?  The following is what I've done:
$ 
$ java -cp build/fop.jar org.apache.fop.fonts.apps.TTFReader -ttcname
$ MingLiU C:\winnt\fonts\mingliu.ttc MingLiU.xml
$ 
$ Fergus
$ 
$ -Original Message-
$ From: Muller, Markus [mailto:[EMAIL PROTECTED]
$ Sent: Monday, April 14, 2003 5:38 PM
$ To: [EMAIL PROTECTED]
$ Subject: AW: Chinese character in bold
$ 
$ 
$ Hi,
$ 
$ AFAIK you have to generate different XML font metrics files 
$ for different
$ font styles / weigths, so your userconfig.xml should look like this:
$ 
$ font metrics-file=D:\fop\fop-0.20.4\conf\MingLiU.xml
$ embed-file=C:\winnt\fonts\mingliu.ttc kerning=yes
$  font-triplet name=MingLiU style=normal weight=normal/
$ /font
$ font metrics-file=D:\fop\fop-0.20.4\conf\MingLiUBold.xml
$ embed-file=[dont know] kerning=yes
$  font-triplet name=MingLiU style=normal weight=bold/
$ /font
$ and so on.
$ 
$ Markus
$ 
$ $ -Urspr?gliche Nachricht-
$ $ Von: Lee Fergus [mailto:[EMAIL PROTECTED] 
$ $ Gesendet: Montag, 14. April 2003 11:32
$ $ An: '[EMAIL PROTECTED]'
$ $ Betreff: Chinese character in bold
$ $ 
$ $ 
$ $ Hi all,
$ $ 
$ $ I have problem showing chinese characters in bold.  I have 
$ $ generated the
$ $ MingLiU.xml file with the TTFReader utility from the 
$ $ mingliu.ttc file and
$ $ here's what I put inside my userconfig.xml
$ $ 
$ $  font metrics-file=D:\fop\fop-0.20.4\conf\MingLiU.xml
$ $ embed-file=C:\winnt\fonts\mingliu.ttc kerning=yes
$ $ font-triplet name=MingLiU style=normal weight=normal/
$ $ font-triplet name=MingLiU style=normal weight=bold/
$ $ font-triplet name=MingLiU style=italic weight=normal/
$ $ font-triplet name=MingLiU style=italic weight=bold/
$ $  /font
$ $ 
$ $ The resulting PDF file can shows Chinese character when the 
$ $ font-family is
$ $ set to MingLiU.  However, when I set the weight=bold, the 
$ $ character is
$ $ still show as normal.
$ $ 
$ $ Is there anything that I'm doing wrong or missing out?
$ $ 
$ $ Regards,
$ $ Fergus Lee
$ $ 
$ 
$ -
$ 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]



AW: [ERROR] -2

2003-04-11 Thread Müller, Markus
You should put your static text inside fo:block/fo:block tags.

Perhaps this helps,
Markus


$ -Ursprüngliche Nachricht-
$ Von: Todtenhaupt, Susann 
$ [mailto:[EMAIL PROTECTED] 
$ Gesendet: Freitag, 11. April 2003 12:46
$ An: '[EMAIL PROTECTED]'
$ Betreff: AW: [ERROR] -2
$ 
$ 
$ I get an ArrayOutOfBoundsException. But I can't retrace my 
$ fault... As
$ attachment I'm sending my fo-file. Anybody is kindly asked 
$ to have a look.
$ :-)
$ 
$ Million thanx!
$ suse
$ 
$ -Ursprüngliche Nachricht-
$ Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
$ Gesendet: Freitag, 11. April 2003 12:16
$ An: [EMAIL PROTECTED]
$ Betreff: Re: [ERROR] -2
$ 
$ I don't know. Run FOP on the command-line with the -d 
$ (debug) option.
$ You'll get a stacktrace that will be more informative.
$ 
$ On 11.04.2003 11:44:06 Todtenhaupt, Susann wrote:
$  While processing with fop I get the error [ERROR] -2. 
$ What does it mean?
$ 
$ 
$ 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]



AW: Page end

2003-04-10 Thread Müller, Markus
Title: Nachricht



Hi,

you 
can set a marker for that purpose. The value of the marker is the item count, so 
each appearance of the item increments the count (=sets a new marker, each of 
the same type). For displaying the item count, retrieve the first and last 
marker in the (current) page, compute the difference and you have, what you are 
looking for.

Hope, 
this helps and is not too abstract,
Markus

  
  -Ursprüngliche Nachricht-Von: Prabhat Kumar (IT) 
  [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 
  2003 16:02An: [EMAIL PROTECTED]Betreff: Page 
  end
  Hello, 
  Is there a way by which I can figure out the end of 
  a page. I am generating a PDF file from an XML and need to print out item 
  totals at the bottom of a page. For instance if there are 10 items on the 
  first and 7 on the next. The first page should print out "Number of items on 
  this page = 10"..
  TIA 
  Prabhat 


Specifying exact table/row height

2003-04-07 Thread Müller, Markus
Hi all,

How can I specify the exact (maybe by using min AND max) height of a table
or a row?
I think this is a very simple question, but I haven't found the answer
yet...

Thanks all in advance,
Markus

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



AW: Specifying exact table/row height

2003-04-07 Thread Müller, Markus
Yes, I tried, but it did not work...

$ -Ursprüngliche Nachricht-
$ Von: Todtenhaupt, Susann 
$ [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 7. April 2003 14:19
$ An: '[EMAIL PROTECTED]'
$ Betreff: Re:Specifying exact table/row height
$ 
$ 
$ Maybe the attribute height for table-cell or table-row will work...
$ 
$ -
$ 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]



AW: xpath question

2003-03-31 Thread Müller, Markus
sum expects a node set, neither count(..) nor an addition return this.
Try replacing + by ,, perhaps that works:
xsl:when test=13=sum(count(./elections),count(./dependents))
It could also be possible that the less than sign makes trouble; replace
=13 by gt;12

Markus

$ -Ursprüngliche Nachricht-
$ Von: Partridge, Michael [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 31. März 2003 17:15
$ An: [EMAIL PROTECTED]
$ Betreff: RE: xpath question
$ 
$ 
$ Thanks for the speedy reply, but the XSL processor built into XML Spy
$ replies:
$ 
$ [ERROR] Can not convert #NUMBER to a NodeList!
$ 
$ Mike
$ 
$ -Original Message-
$ From: [EMAIL PROTECTED] 
$ [mailto:[EMAIL PROTECTED]
$ 
$ Sent: Monday, March 31, 2003 9:11 AM
$ To: [EMAIL PROTECTED]
$ Subject: Re: xpath question
$ 
$ 
$ 
$ try
$ 
$ xsl:when test=13=sum(count(./elections)+count(./dependents))
$ 
$ and it should work
$ 
$ 
$ greets
$ 
$ 
$ 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.
$ 
$ 
$ -
$ 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]



AW: Right aligned text flutters (continued)

2003-03-28 Thread Müller, Markus
Hi,

There's no difference between kerning on and kerning off.
But when drawing a solid (white) border around each table cell,
the right alignment gets much better...

Thanks all,
Markus

$ -Ursprüngliche Nachricht-
$ Von: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
$ Gesendet: Freitag, 28. März 2003 07:41
$ An: [EMAIL PROTECTED]
$ Betreff: Re: Right aligned text flutters (continued)
$ 
$ 
$ Try switching off kerning if it's enabled.
$ 
$ On 27.03.2003 22:39:44 Müller, Markus wrote:
$  The problem still exists in FOP 0.20.5rc. But it is not a 
$ general problem of
$  FOP, the fluttering only occurs when using our corporate 
$ font. The font
$  metrics file is generated as described in the FOP 
$ manual. What can be
$  wrong 
$ 
$ 
$ 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]



Right aligned text flutters

2003-03-27 Thread Müller, Markus
Hi foopers,

Using FOP 0.20.4rc (ok, that's not the current version ;-)) I generate an
invoice having a table with invoice items like this:

INVOICE

Books   2000,00
Mice50,00
Couch  600,00
Quietscheentchen   5,00
...

Since we live in the 21th century, we do not use fixed fonts :-) 
The right most column has the attribute xxxalign=end. When displaying the
document, the amounts are right aligned, but not really exactly. The right
border flutters in the range of about 1/2 mm. How can I stop this
fluttering???

Thanks for help in advance,
Markus

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



Right aligned text flutters (continued)

2003-03-27 Thread Müller, Markus
Hi again,

The problem still exists in FOP 0.20.5rc. But it is not a general problem of
FOP, the fluttering only occurs when using our corporate font. The font
metrics file is generated as described in the FOP manual. What can be
wrong 

Any suggestions welcome,
Markus

$ -Ursprüngliche Nachricht-
$ Von: Müller, Markus 
$ Gesendet: Donnerstag, 27. März 2003 21:13
$ An: [EMAIL PROTECTED]
$ Betreff: Right aligned text flutters
$ 
$ 
$ Hi foopers,
$ 
$ Using FOP 0.20.4rc (ok, that's not the current version ;-)) 
$ I generate an
$ invoice having a table with invoice items like this:
$ 
$ INVOICE
$ 
$ Books2000,00
$ Mice50,00
$ Couch  600,00
$ Quietscheentchen5,00
$ ...
$ 
$ Since we live in the 21th century, we do not use fixed fonts :-) 
$ The right most column has the attribute xxxalign=end. When 
$ displaying the
$ document, the amounts are right aligned, but not really 
$ exactly. The right
$ border flutters in the range of about 1/2 mm. How can I stop this
$ fluttering???
$ 
$ Thanks for help in advance,
$ Markus
$ 
$ -
$ 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]



AW: messages in fop

2003-03-20 Thread Müller, Markus
Title: Nachricht



Hi,

you can use the following to 
make your transformation verbose:
xsl:message 
terminate="no"My Messagexsl:value-of 
select="foo"/[eom]/xsl:message
The messages appear at the 
console output of fop.

Markus

  
  -Ursprüngliche Nachricht-Von: Myriam Delperier 
  [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 20. März 
  2003 09:49An: [EMAIL PROTECTED]Betreff: messages 
  in fop
  hi
  i'd like to know if there's a way to get messages when 
  transforming fo to pdf with fop.
  something like an element fo:messagexsl:value-of 
  select=""//fo:message
  As i've got problems with some arrays it would help me to 
  know on which table my problem is for example
  thanks


AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Müller, Markus
Hi,

You get this message when you have the wrong encoding in your XML file
?xml version=1.0 encoding=wrongone?. The XML parser then gets a wrong
input, not the required ?xml

Markus

$ -Ursprüngliche Nachricht-
$ Von: Dipl.-Oec. Harald Meyer [mailto:[EMAIL PROTECTED] 
$ Gesendet: Mittwoch, 19. März 2003 15:39
$ An: [EMAIL PROTECTED]
$ Betreff: AW: Upgrade 0.20.3 to 0.20.5rc
$ 
$ 
$  I think you have avalon-framework-4.0 in your classpath. 
$ This file has
$  changed.
$  It is now called avalon-framework-cvs... and was part of my source
$  distribution.
$  Serach for such a file and change the classpath. This 
$ should fix your
$  problem.
$ 
$ 
$ Thanks, but now I get another error and I need some help ... ;-)
$ 
$ C:\fopjava -cp
$ build\fop.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\x
$ alan-2.4.1.jar;
$ lib\batik.jar;lib\avalon-framework-cvs-20020806.jar;lib\jimi-
$ 1.0.jar;lib\jai
$ _core.jar;lib\jai_codec.jar org.apache.fop.apps.Fop -d -xml
$ C:\Inetpub\honeywell\quotation\xml\200443.xml -xsl C:\Inetpub\honeywe
$ ll\quotation\xml2pdf.xsl 
$ C:\Inetpub\honeywell\quotation\pdf\200443.pdf
$ [DEBUG] Input mode:
$ [DEBUG] xslt transformation
$ [DEBUG] xml input file: C:\Inetpub\honeywell\quotation\xml\200443.xml
$ [DEBUG] xslt stylesheet: C:\Inetpub\honeywell\quotation\xml2pdf.xsl
$ [DEBUG] Output mode:
$ [DEBUG] pdf
$ [DEBUG] output file: C:\Inetpub\honeywell\quotation\pdf\200443.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:/C:/Inetpub/honeywell/quotation/xml/
$ [INFO] FOP 0.20.5rc
$ [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
$ [ERROR] Content is not allowed in prolog.
$ org.apache.fop.apps.FOPException: Content is not allowed in prolog.
$ at org.apache.fop.apps.Driver.render(Driver.java:462)
$ at
$ org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
$ .java:69)
$ at org.apache.fop.apps.Fop.main(Fop.java:19)
$ 
$ -
$ 
$ org.xml.sax.SAXParseException: Content is not allowed in prolog.
$ at 
$ org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
$ at 
$ org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
$ at org.apache.fop.apps.Driver.render(Driver.java:457)
$ at
$ org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
$ .java:69)
$ at org.apache.fop.apps.Fop.main(Fop.java:19)
$ 
$ -
$ 
$ org.xml.sax.SAXParseException: Content is not allowed in prolog.
$ at 
$ org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
$ at 
$ org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
$ at org.apache.fop.apps.Driver.render(Driver.java:457)
$ at
$ org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
$ .java:69)
$ at org.apache.fop.apps.Fop.main(Fop.java:19)
$ 
$ 
$ 
$ -
$ 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]



AW: Embedding fonts!

2003-03-17 Thread Müller, Markus
Sorry, if this is a duplicate mail, but it seems the original one was
dropped anywhere out there ...

Hi,

How did you create your font metrics file? Did you use the option -enc
ansi and set the font name explicitly?
What system are you using?

Markus

$ -Ursprüngliche Nachricht-
$ Von: Uwe Klosa [mailto:[EMAIL PROTECTED] 
$ Gesendet: Montag, 17. März 2003 13:16
$ An: [EMAIL PROTECTED]
$ Betreff: SV: Embedding fonts!
$ 
$ 
$ No, that is not correct, after what my tests with word and 
$ acrobat showed.
$ If I embed Times New Roman the name in the PDF file is TimesNewRoman.
$ Perhaps should I have a look at the source and try out something.
$ 
$ Mvh Uwe
$ 
$ -Ursprungligt meddelande-
$ Från: Dennis Myrén [mailto:[EMAIL PROTECTED] 
$ Skickat: den 17 mars 2003 12:24
$ Till: [EMAIL PROTECTED]; Klosa Uwe
$ Ämne: RE: Embedding fonts!
$ 
$ I think Acrobat itself stores embedded fonts in this way.
$ The document should already be fully editable in Acrobat.
$ 
$ MVH Dennis
$ 
$ 
$ 
$ -Original Message-
$ From: Uwe Klosa [mailto:[EMAIL PROTECTED] 
$ Sent: 17. mars 2003 12:10
$ To: [EMAIL PROTECTED]
$ Subject: SV: Embedding fonts!
$ 
$ But how to create pdf files that are editable with Acrobat then?
$ 
$ Regards,
$ Uwe
$ 
$ -Ursprungligt meddelande-
$ Från: Dennis Myrén [mailto:[EMAIL PROTECTED] 
$ Skickat: den 17 mars 2003 11:57
$ Till: [EMAIL PROTECTED]; Klosa Uwe
$ Ämne: RE: Embedding fonts!
$ 
$ That is the correct behavior.
$ I am not sure, but I think these six leading characters are 
$ placed in front
$ of the font name to ensure the embedded font will be used in 
$ the document,
$ and not the font installed on the machine with the same name.
$ 
$ Regards,
$ Dennis
$ 
$ -Original Message-
$ From: Uwe Klosa [mailto:[EMAIL PROTECTED] 
$ Sent: 17. mars 2003 11:33
$ To: fop-dev@xml.apache.org; [EMAIL PROTECTED]
$ Subject: Embedding fonts!
$ 
$ Hi,
$ 
$ I'm using embedded fonts in fop. That is working fine. But 
$ if I want to edit
$ the resulting pdf files with Acrobat, the font names aren't 
$ correct in the
$ file. I'm getting 1Eec24TimesNewRoman or 2Ef1d7TimesNewRoman 
$ where it should
$ be TimesNewRoman. Why creates fop theses font names? Has 
$ anyone tried do
$ edit the resulting pdf files?
$ 
$ Regards Uwe
$ 
$ 
$ -
$ 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]
$ 

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



AW: FOP in production app (clienside)

2003-03-12 Thread Müller, Markus
Hi,

You have to consider the additional JARs used by FOP (Xalan, Avalon, ...).
IMHO you get somewhat around 5 MB of JARs. It will take a long time for your
users to download so much stuff (at least the first time they use the
applet). This was the reason for us to have FOP on the server and send PDF
from there to the client.

Markus

$ -Ursprüngliche Nachricht-
$ Von: Van Camp, Kenneth (Exchange) [mailto:[EMAIL PROTECTED] 
$ Gesendet: Mittwoch, 12. März 2003 14:56
$ An: '[EMAIL PROTECTED]'
$ Betreff: RE: FOP in production app
$ 
$ 
$ I saw a number of posted responses to David's query but it 
$ seems like most
$ respondents are using FOP on the server side.  Is there much 
$ experience in
$ using FOP on the client side, say inside of an applet?  I am 
$ interested in
$ streaming XSLT to the user's browser and having an applet 
$ transform it into
$ a PDF, then invoke Acrobat reader to render it on the desktop.
$ 
$ Is this a common application?  It is related to this thread 
$ in that I am
$ concerned about production support in such an environment.
$ 
$ Is there a better way?  Thanks.
$ 
$ Ken Van Camp [EMAIL PROTECTED]
$ 
$ -Original Message-
$ From: Holk, David A [mailto:[EMAIL PROTECTED] 
$ Sent: Monday, March 10, 2003 12:37 PM
$ To: '[EMAIL PROTECTED]'
$ Subject: FOP in production app
$ 
$ 
$ Is anyone using FOP in a production app? 
$ 
$ Should I expect a commercial product like XEP or 
$ XSLFormatter to be more
$ robust in a production application?
$ 
$ Any experiences/comments appreciated.
$ 
$ David Holk
$ 
$ 
$ LEGAL NOTICE
$ Unless expressly stated otherwise, this message is 
$ confidential and may be
$ privileged. It is intended for the addressee(s) only. Access 
$ to this E-mail
$ by anyone else is unauthorized. If you are not an addressee, 
$ any disclosure
$ or copying of the contents of this E-mail or any action 
$ taken (or not taken)
$ in reliance on it is unauthorized and may be unlawful. If 
$ you are not an
$ addressee, please inform the sender immediately.
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 
$ 
$ *
$ **
$ Bear Stearns is not responsible for any recommendation, 
$ solicitation, 
$ offer or agreement or any information about any transaction, 
$ customer 
$ account or account activity contained in this communication.
$ *
$ **
$ 
$ 
$ -
$ 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]



AW: keep-together / blind tables

2003-03-04 Thread Zieseniß, Markus
Let's try this code (I  did not test it):

substitute:

fo:table-row
fo:table-cell
xsl:apply-templates select=paragraph/
/fo:table-cell
/fo:table-row

through:

xsl:for-each select=paragraph
fo:table-row
fo:table-cell
fo:blockxsl:value-of select=././fo:block
/fo:table-cell
/fo:table-row
/xsl:for-each

 -Ursprüngliche Nachricht-
 Von:  Matthias Brunner [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Montag, 3. März 2003 19:25
 An:   [EMAIL PROTECTED]
 Betreff:  keep-together / blind tables
 
 Hello,
 
 I know this is a FAQ but I did not find anything appropriate to my 
 specific problem.
 I have paragraphs with a heading and, of course, I do not want the 
 heading to be left alone on one page with the paragraphs being on 
 the next one.
 
 ---excerpt---
 xsl:template match=paragraphs
 fo:table table-layout=fixed width=100%
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-body
   
 fo:table-row keep-with-next=always
 fo:table-cell
 xsl:apply-templates select=heading/
 /fo:table-cell
 /fo:table-row
   
 fo:table-row
 fo:table-cell
 xsl:apply-templates select=paragraph/
 /fo:table-cell
 /fo:table-row
   
 /fo:table-body
 /fo:table
 /xsl:template
 ---excerpt---
 
 
 keep-with-next works, the heading is never left alone.
 But even if a paragraph is half a page in size it is not seperated 
 any more thus leaving ugly blank spots on the pages. (strange ASCII 
 art example attached below :)
 What can I do to allow the separation of this paragraph?
 
 
 Thanks in advance,
 Matthias
 
 
 Example:
 p1
 
 heading/
 paragraph
 content
 content
 content
 /paragraph
 EMPTY
 EMPTY
 EMPTY
 EMPTY
 ---
 p2
 
 heading/
 paragraph
 content
 content
 content
 content
 content
 content
 content
 /paragraph
 
 
 
 
 INSTEAD OF:
 p1
 
 heading/
 paragraph
 content
 content
 content
 /paragraph
 heading/
 paragraph
 content
 content-
 ---
 p2
 
 content
 content
 content
 content
 content
 /paragraph
 EMPTY
 EMPTY
 EMPTY
 EMPTY
 
 
 -
 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]



AW: analogy to table frame=void

2003-02-28 Thread Müller, Markus
Hi,

you could use the border properties like in the following 
snippet posted earlier in this list. For more information 
about these properties have a look at 
http://www.w3.org/TR/xsl/slice7.html#common-border-padding-and-background-pr
operties

-- snip.. --
fo:block
  fo:table table-layout=fixed
fo:table-column column-width=150mm/
fo:table-body
  fo:table-row line-height=2pt  
  fo:table-cell 
border-bottom-style=solid 
border-bottom-color=black 
border-bottom-width=0.5pt
fo:block 
  font-size=10pt 
  color=white_
/fo:block
  /fo:table-cell
/fo:table-row
fo:table-row line-height=10pt   
 fo:table-cell 
   border-top-style=solid 
   border-top-color=black 
   border-top-width=0.5pt
   fo:block font-size=10pt color=white_
   /fo:block  
 /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table
   /fo:block
-- ..snip --

Greez,
Markus


# -Ursprüngliche Nachricht-
# Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 28. Februar 2003 07:38
# An: [EMAIL PROTECTED]
# Betreff: analogy to table frame=void
# 
# I have simple table with 2 cells, 1 row . I want a simple 
# vertical line
# between them , no other borders.
# 
# Does exist some analogy to HTML's table  frame=void   ?  
# Or any other
# way ?
# 
# Thanks.
# 
# 
# 
# 
# -
# 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]



AW: How do I rest Page Number to 1 for each new section/chapter

2003-02-24 Thread Zieseniß, Markus
I would put a for-each loop around the main page-sequence like:

xsl:for-each select=ChAPTER

fo:page-sequence master-reference=alleSeiten
initial-page-number=1

fo:static-content flow-name=xsl-region-after
fo:block
font-family=serif
font-size=10pt
font-style=normal
font-weight=normal
text-align=left
start-indent=2.0cm

Seite fo:page-number/,

/fo:block
/fo:static-content


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

xsl:apply-templates select=YOUR-TEMPLATES/
/fo:flow

/fo:page-sequence

/xsl:for-each

greetings Markus

 -Ursprüngliche Nachricht-
 Von:  andrew mercer [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Montag, 24. Februar 2003 12:15
 An:   [EMAIL PROTECTED]
 Betreff:  How do I rest Page Number to 1 for each new section/chapter
 
 Hi,
 
 Sorry if this is in the Archive, I have searched it and the FAQ to no
 avail.
 
 I am trying to create a pdf file from an xml file that is converted 
 using fop. The layout is based mainly on tables/rows etc.
 
 I can successfully create the document, however I have many sections 
 within the whole document that need to to be numbered separatley. 
 Therefore at the start of each new section the page number should revert 
 to one and then increment by one for each new page.
 
 At present the page numbers will keep incrementing from the initial 
 value of one for each new page so they relate to the number of pages for 
 the whole document.
 
 My xsl document is available if that helps.
 
 Thanks Andrew Mercer
 -- 
 
 
 Andrew Mercer, Sundayta Ltd. http://www.sundayta.com
 iDocSys for Document Management. VisibleResults for Fundraising.
 Development and Hosting of Web Applications and Sites.
 
 
 -
 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]



counting variable

2003-02-17 Thread Zieseniß, Markus
Hello,

is there a possibility to create a variable, which can count elements of my
letter?


Thanks in adavance 
Markus 

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



AW: Pages counting.

2003-02-14 Thread Müller, Markus
Have a look at FOP.FAQ at http://xml.apache.org/fop/faq.html (FO) How do I
print the total number of pages, like in page 1 of 12.
Hope this is what you mean.

Markus



# -Ursprüngliche Nachricht-
# Von: [EMAIL PROTECTED] 
# [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 14. Februar 2003 16:07
# An: [EMAIL PROTECTED]
# Betreff: Pages counting.
# 
# Hi people!
# I have this time a simple question. How can I know the 
# numbers of pages that
# FOP will render ? 
# I need this because I have to write the information on the 
# bottom of the
# page(with something like :
#  
# Page fo:page-number/ , xsl:value-of select=$nbpages /
#  
# Thanks
# Frédéric
# 
# -
# 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]



AW: Calculate number of pages without complete rendering-process was: Re: Counting the number of pages generated in the pdf file

2003-02-07 Thread Zieseniß, Markus
I also do not understand the wrapper example to count all pages of a
document. Has anybody tested that and can explain how to implement?

greetings Markus

 -Ursprüngliche Nachricht-
 Von:  J.Pietschmann [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Mittwoch, 5. Februar 2003 22:32
 An:   [EMAIL PROTECTED]
 Betreff:  Re: Calculate number of pages without complete
 rendering-process was: Re: Counting the number of pages generated in the
 pdf file
 
 alex elsholz wrote:
  but thats not what i want.
  
  I'm looking for an solution to calculate the number of pages without the
  complete rendering process.
 
 Great idea. If you tell me how to do it, I'll implement it.
 Note: In general, you can't know how many pages a text fills
 unless you actually filled the pages with the text.
 
  an own wrapper? why doesnt exists a default-wrapper? How could i
 implemet
  this?
 I took the freedom to delete the code you generously pseudo-quoted
 from the FAQ and which does exactly what you described.
 
 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]



AW: Page Numbers

2003-02-07 Thread Zieseniß, Markus
in your simple-page-master master-name=main you have to insert
fo:region-after extent=1cm/.

That should work.
Markus

 -Ursprüngliche Nachricht-
 Von:  [EMAIL PROTECTED]
 [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Freitag, 7. Februar 2003 12:13
 An:   [EMAIL PROTECTED]
 Betreff:  Page Numbers
 
 I'm trying to get page numbers to appear in a PDF document using the
 following code:
 
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
   fo:simple-page-master master-name=main
 page-height=29.7cm page-width=21cm margin-top=2cm
 margin-bottom=2cm
 margin-left=2cm margin-right=1.2cm
   fo:region-body/
   /fo:simple-page-master
   fo:page-sequence-master
 master-name=single
   fo:single-page-master-reference
 master-name=main/
   /fo:page-sequence-master
   /fo:layout-master-set
   fo:page-sequence master-name=single
 initial-page-number=1
   !--fo:sequence-specification
   fo:sequence-specifier-alternating
 page-master-first=main page-master-odd=main page-master-even=main/
   /fo:sequence-specification --
   fo:static-content
 flow-name=xsl-region-after
   fo:block text-align=center
 font-size=10pt font-family=serif line-height=14pt Test - p.
 fo:page-number/ /fo:block
   /fo:static-content
   fo:flow flow-name=xsl-region-body
   xsl:apply-templates/
   /fo:flow
   /fo:page-sequence
   /fo:root
 
 But I keep getting the following warning:
 WARNING: region-name 'xsl-region-after' doesn't exist in the
 layout-master-set.
 
 and no page numbers.
 
 How and where do I add xsl-region-after to the fo:layout-master-set in
 order to get it to work?
 
 
 More importantly, is there a comprehensive tutorial on FOP anywhere which
 explains what each of the elements and attributes do? So far I've only
 come
 across examples and getting anything to work is a 3 hour exercise in
 banging
 my head against the desk :)
 
 
 Many thanks in advance,
 
 Ben
 
 
 __
 
 CONFIDENTIALITY NOTICE
 This communication and the information it contains is intended for the
 person or organisation to whom it is addressed.  Its contents are
 confidential and may be protected in law.  Unauthorised use, copying or
 disclosure of any of it may be unlawful.  If you are not the intended
 recipient, please contact us immediately.
 
 The contents of any attachments in this e-mail may contain software
 viruses, which could damage your own computer system.  While Marlborough
 Stirling has taken every reasonable precaution to minimise this risk, we
 cannot accept liability for any damage which you sustain as a result of
 software viruses.  You should carry out your own virus checking procedure
 before opening any attachment.
 
 Marlborough Stirling plc, Registered No. 3008820,
 Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
 Tel: 01242 547000 Fax: 01242 547100
 http://www.marlborough-stirling.com
 
 The following companies are subsidiaries of Marlborough Stirling plc and
 are registered in England and Wales at the above address:
 Marlborough Stirling PLC, Registered No. 3008820
 The Marlborough Stirling Group PLC, Registered No. 1855353
 Marlborough Stirling Administration Limited, Registered No. 2341195
 Metgem Limited, Registered No. 02341195
 
 
 -
 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]



AW: Suppress new line creation in a fo:block

2003-02-05 Thread Zieseniß, Markus
try it with table:


fo:table table-layout=fixed
  fo:table-column column-width=60mm/
  fo:table-column column-width=30mm/
  fo:table-column column-width=60mm/

fo:table-body
 fo:table-row
   fo:table-cell 
 fo:blockMyCompany/fo:block
   /fo:table-cell
   fo:table-cell
 fo:block#160;/fo:block
   /fo:table-cell
   fo:table-cell
 fo:block text-align=rightDate/fo:block
   /fo:table-cell
   /fo:table-row
   /fo:table-body
/fo:table

best regards
Markus
 -Ursprüngliche Nachricht-
 Von:  Celine Murphy [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Mittwoch, 5. Februar 2003 16:32
 An:   Fop-User (E-mail)
 Betreff:  Suppress new line creation in a fo:block
 
 Hi,
  
 I am trying to place text thus:
  
 MyCompany
 MyDate
  
 currently i am using fo:leader which works but if the length of either
 of these changes then it goes on to a new line. I would ideally like to
 use a fo:block and suppress the new line creation and just align the text
 to the end of the page. Is this possible?? If so can anyone show me how to
 do it??
  
 Regards
  
 Celine
 
 
 This e-mail and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they are
 addressed. If you are not the intended recipient, you should not copy,
 retransmit or use the e-mail and/or files transmitted with it and should
 not disclose their contents. In such a case, please notify
 [EMAIL PROTECTED] and delete the message from your own system.
 Any opinions expressed in this e-mail and/or files transmitted with it
 that do not relate to the official business of this company are those
 solely of the author and should not be interpreted as being endorsed by
 this company.
 

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



suppress sign in header on last page

2003-02-05 Thread Zieseniß, Markus
Hello,

I have a floating text (1..n pages) and need a sign for our inserter
(enveloping machine), which appears on all pages except the last. I tried to
put the inserter-sign in the header, but this sign is also printed on the
last page. Then I tried to overwrite this sign by a white-bitmap graphic,
but this also does not work. Can anybody help me?

Thanks in advance
Markus 

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



AW: suppress sign in header on last page

2003-02-05 Thread Zieseniß, Markus
I also thought so, but page-position=last  did not work. 
 

 -Ursprüngliche Nachricht-
 Von:  Toufic Nehme [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Mittwoch, 5. Februar 2003 18:29
 An:   [EMAIL PROTECTED]
 Betreff:  Re: suppress sign in header on last page
 
 Hi,
 I had the same problem and somebody on this list suggested something like
 this.
 
 fo:layout-master-set
 fo:simple-page-master master-name=lastPage
page-height=
page-width=
margin-top=
margin-bottom=
margin-left=
margin-right=
   fo:region-body margin-top= /
   fo:region-start margin-top=2cm /
   fo:region-before extent=/
   fo:region-after extent=/
 /fo:simple-page-master
 fo:simple-page-master master-name=others
page-height=
page-width=
margin-top=
margin-bottom=
margin-left=
margin-right=
fo:region-body margin-top=/
 fo:region-start extent=/
 fo:region-before extent=/
 fo:region-after extent=/
 /fo:simple-page-master
 fo:page-sequence-master master-name=layoutName
 fo:repeatable-page-master-reference master-reference=others/
 fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference
 master-reference=lastPage
 page-position=last /
fo:conditional-page-master-reference
 master-reference=others/
 /fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
   /fo:layout-master-set
 
 In your  fo:page-sequence master-reference=lastPage you can specify
 what
 ever you want on
 the header of the last page.
 
 and if you need more details see:
 http://www.dpawson.co.uk/xsl/sect3/bk/ch05.html
 
 I hope this help.
 
 Zieseniß, Markus wrote:
 
  Hello,
 
  I have a floating text (1..n pages) and need a sign for our inserter
  (enveloping machine), which appears on all pages except the last. I
 tried to
  put the inserter-sign in the header, but this sign is also printed on
 the
  last page. Then I tried to overwrite this sign by a white-bitmap
 graphic,
  but this also does not work. Can anybody help me?
 
  Thanks in advance
  Markus
 
  -
  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]



TTFReader and different font styles

2003-01-29 Thread Müller, Markus
Hi all,

I noticed a strange behaviour when using TTFReader to generate some font
metrics files for a corporate font. The font is available in normal, italic,
bold and italic+bold style. Since we run our application mainly on the
Windows platform, I use the -enc ansi option in the commandline. TTFReader
generates one XML-file for each font style based on the different TTF-files.
That's absolutely correct. BUT when using these, AcrobatReader does use the
*normal* style font for all possible styles. Manipulating the font metrics
file solves the problem, by appending ,Bold resp ,Italic ... to the
font's display name. Is there a way that TTFReader generates this appendix
to the name? Or is the font file a little corrupt?

Thanks in advance,
Markus

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



AW: TTFReader and different font styles

2003-01-29 Thread Müller, Markus
Nope, the userconfig.xml is correct. For each font style there is a single
entry, setting the correct triple. As I have written, the problem is solved
when we manually modify the font metrics files _without_ chaning the
userconfig.xml, of course.

# -Ursprüngliche Nachricht-
# Von: Jeremias Maerki [mailto:[EMAIL PROTECTED]
# Gesendet am: Mittwoch, 29. Januar 2003 14:17
# An: [EMAIL PROTECTED]
# Betreff: Re: TTFReader and different font styles
# 
# You've probably simply got an error in your userconfig.xml. 
# You need to
# make sure that you've got an entry for each style. See the sample
# userconfig.xml that comes with FOP. There's an example for the Arial
# font that does exactly that. No need to edit the generated 
# XML files IMO.
# 
# On 29.01.2003 14:00:54 Müller, Markus wrote:
#  I noticed a strange behaviour when using TTFReader to 
# generate some font
#  metrics files for a corporate font. The font is available 
# in normal, italic,
#  bold and italic+bold style. Since we run our application 
# mainly on the
#  Windows platform, I use the -enc ansi option in the 
# commandline. TTFReader
#  generates one XML-file for each font style based on the 
# different TTF-files.
#  That's absolutely correct. BUT when using these, 
# AcrobatReader does use the
#  *normal* style font for all possible styles. Manipulating 
# the font metrics
#  file solves the problem, by appending ,Bold resp 
# ,Italic ... to the
#  font's display name. Is there a way that TTFReader 
# generates this appendix
#  to the name? Or is the font file a little corrupt?
# 
# 
# 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]



PDF 7-bit format supported by FOP?

2003-01-23 Thread Müller, Markus
Hi there,

is it possible to generate PDFs with FOP that use the 7-bit encoding, which
is described in the PDF specification?

Thanks,
Markus

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



AW: PDF Printing

2003-01-20 Thread Müller, Markus
Why not using AcrobatReader with the commandline option for printing?

Markus

# -Ursprüngliche Nachricht-
# Von: Mirko Sertic [mailto:[EMAIL PROTECTED]
# Gesendet am: Montag, 20. Januar 2003 10:43
# An: Fop-User
# Betreff: PDF  Printing
# 
# Hello Folks!
# 
# I'm trying to print a generated pdf. I knew i could use the 
# PrintRenderer
# from the PrintStarter class.
# The only problem is that my pdf is not fopped in real - time. It was
# generated some time ago and was
# stored in out application pdf database for later use. So the 
# problem is how
# can i print that pdf?
# 
# Cheers
# 
# Mirko Sertic
# 
# 
# 
# -
# 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]



AW: AW: PDF Printing

2003-01-20 Thread Müller, Markus
On my RedHat AcrobatReader runs pretty good!

# -Ursprüngliche Nachricht-
# Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
# Gesendet am: Montag, 20. Januar 2003 11:22
# An: [EMAIL PROTECTED]
# Betreff: Re: AW: PDF  Printing
# 
# Mirko Sertic wrote:
# 
#  It should work on my linux server.
# Does Acrobat for linux exist?
# 
# -- 
# Oleg Tkachenko
# eXperanto team
# Multiconn Technologies, Israel
# 
# 
# -
# 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]



page-break in block

2003-01-20 Thread Zieseniß, Markus
Hello,

I use fop 0.20.4 and want to produce a pdf-file of .xml and .xsl.
What can I do, that a fo:block is not be separated by an automatic 
page-break.  

thanks in advance
Markus

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



AW: page-break in block

2003-01-20 Thread Zieseniß, Markus
inline-container does not work (the table in the block is pushed together).
Does the actual version solve this problem (the whole block appears on the
next page?)

thanks
Markus

 -Ursprüngliche Nachricht-
 Von:  Oleg Tkachenko [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Montag, 20. Januar 2003 14:24
 An:   [EMAIL PROTECTED]
 Betreff:  Re: page-break in block
 
 Zieseniß, Markus wrote:
 
  I use fop 0.20.4 and want to produce a pdf-file of .xml and .xsl.
  What can I do, that a fo:block is not be separated by an automatic 
  page-break.  
 Don't use it or encapsulate into fo:inline-container.
 
 -- 
 Oleg Tkachenko
 eXperanto team
 Multiconn Technologies, Israel
 
 
 -
 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]



AW: AW: page-break in block

2003-01-20 Thread Zieseniß, Markus
I've to generate a .pdf-letter (up to 3 pages) . The flow text is brought by
xml-file.
So the text on a page is variable. Some text-sections (fo:blocks) are not
allowed to be separated
by a page-break, they have to be written on the next page. I heard of the
page-break-inside-attribute, which should do it, but up to now it doesn't
work (page-break-inside is not implemented yet).

thanks
Markus   

 -Ursprüngliche Nachricht-
 Von:  Oleg Tkachenko [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Montag, 20. Januar 2003 14:58
 An:   [EMAIL PROTECTED]
 Betreff:  Re: AW: page-break in block
 
 Zieseniß, Markus wrote:
  inline-container does not work (the table in the block is pushed
 together).
  Does the actual version solve this problem (the whole block appears on
 the
  next page?)
 Well, right, inline-container is not implemented. What are you trying to 
 achieve actually?
 
 -- 
 Oleg Tkachenko
 eXperanto team
 Multiconn Technologies, Israel
 
 
 -
 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]



AW: ERROR Divided by zero

2003-01-13 Thread Müller, Markus
I just have a guess, but is this correct: 
[snip] -xml evalu.html ???

I remember having the same problem when exchanging the xml file for the xsl
file.

Greets,
Markus


# -Ursprüngliche Nachricht-
# Von: Laura Ameijide Garcia [mailto:[EMAIL PROTECTED]
# Gesendet am: Montag, 13. Januar 2003 11:53
# An: [EMAIL PROTECTED]
# Betreff: Re: ERROR Divided by zero
# 
# If I execute it in the comand thats the result:  It's for my version?
# 
# .Laura
# 
# C:\fop\fop-0.20.3java -cp
# build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;
# lib\avalon-framework 4.0.jar;lib\logkit1.0.jar;lib\jimi-1.0.jar
# org.apache.fop.apps.Fop -d -xml evalu.html -xsl evalu.xsl evalu.pdf
# 
# [DEBUG]: Input mode:
# [DEBUG]: xslt transformation
# [DEBUG]: xml input file: evalu.html
# [DEBUG]: xslt stylesheet: gastronofo.xsl
# [DEBUG]: Output mode:
# [DEBUG]: pdf
# [DEBUG]: output file: evalu.pdf
# [DEBUG]: OPTIONS
# [DEBUG]: no user configuration file is used [default]
# [DEBUG]: debug mode on
# [DEBUG]: dump configuration
# [DEBUG]: quiet mode on
# [DEBUG]: base directory: file:/C:/fop/fop-0.20.3/
# [INFO]: FOP 0.20.3
# [DEBUG]: using SAX parser org.apache.xerces.parsers.SAXParser
# [INFO]: building formatting object tree
# [DEBUG]: setting up fonts
# [INFO]: Parsing of document complete, stopping renderer
# [DEBUG]: Initial heap size: 978Kb
# [DEBUG]: Current heap size: 801Kb
# [DEBUG]: Total memory used: -177Kb
# [DEBUG]:   Memory use is indicative; no GC was performed
# [DEBUG]:   These figures should not be used comparatively
# [DEBUG]: Total time used: 250ms
# [DEBUG]: Pages rendererd: 0
# [INFO]: Parsing of document complete, stopping renderer
# [ERROR]: / by zero
# org.apache.fop.apps.FOPException: / by zero
# at org.apache.fop.apps.Driver.render(Driver.java:486)
# at
# org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
# at org.apache.fop.apps.Fop.main(Fop.java:19)
# 
# -
# 
# javax.xml.transform.TransformerException: / by zero
# at
# org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:137)
# at org.apache.fop.apps.Driver.render(Driver.java:481)
# at
# org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
# at org.apache.fop.apps.Fop.main(Fop.java:19)
# 
# -
# 
# javax.xml.transform.TransformerException: / by zero
# at
# org.apache.xalan.transformer.TransformerImpl.transformNode(Tra
# nsformerImpl.j
# ava:1212)
# at
# org.apache.xalan.transformer.TransformerImpl.run(TransformerIm
# pl.java:2894)
# at java.lang.Thread.run(Thread.java:479)
# -
# java.lang.ArithmeticException: / by zero
# at
# org.apache.fop.apps.StreamRenderer.stopRenderer(StreamRenderer
# .java:171)
# at
# org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:205)
# at
# org.apache.xalan.transformer.ResultTreeHandler.endDocument(Res
# ultTreeHandler
# .java:180)
# at
# org.apache.xalan.transformer.TransformerImpl.transformNode(Tra
# nsformerImpl.j
# ava:1194)
# at
# org.apache.xalan.transformer.TransformerImpl.run(TransformerIm
# pl.java:2894)
# at java.lang.Thread.run(Thread.java:479)
# 
# 
# 
# 
# **
# **
# ***
# - Original Message -
# From: Jeremias Maerki [EMAIL PROTECTED]
# To: [EMAIL PROTECTED]
# Sent: Monday, January 13, 2003 10:46 AM
# Subject: Re: ERROR Divided by zero
# 
# 
#  This indicates an arithmetic error like: 13 / 0 = illegal. 
# You know that
#  from school.
# 
#  Somewhere in FOP something wanted to divide some value by zero. The
#  question now is: where and why?
# 
#  The first thing you can do is calling FOP from the command line and
#  using the -d parameter which enables more debug output. 
# That way, we
#  will get a stacktrace which helps you/us find the location 
# of the error.
#  If the information you will get then doesn't help you, send another
#  email and copy the whole output from FOP and attach the 
# xhtml and your
#  xsl so we can reproduce the error.
# 
#  What FOP version do you use?
# 
#  On 13.01.2003 10:06:26 Laura Ameijide Garcia wrote:
#   Hello,
#   I'm beginner in this area. I'm trying to convert a simple 
# html using a
# xsl  but the fop always says me:
#   [ERROR]: / by zero.
#  
#   Somebody can help me? What's the meaning of this error?
# 
# 
#  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]
# 

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



AW: FOP on Mainframe

2002-11-22 Thread Müller, Markus
Hi,

try to omit the encoding parameter of the ?xml..? tag OR set the correct
encoding. When you transferred the file from Windows to OS/390, ensure that
the right character conversion in ftp is set.

Markus

# -Ursprüngliche Nachricht-
# Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 22. November 2002 15:43
# An: [EMAIL PROTECTED]
# Betreff: FOP on Mainframe
# 
# 
# Hello,
# 
# I'm trying to run FOP 0.20.4 on an IBM OS/390 mainframe, 
# running under Unix
# System Services.  I also use Saxon as the XML parser and XSL 
# transformer.
# I get this error:
# 
# Error at byte 3 of
# file:/u/tsryana/LMR/StandardRpts/xsl/StandardReportsPDF.xsl:
#   Error reported by XML parser: invalid UTF-8 byte (check the XML
# declaration) (
# code: 0xa7)
# 
# 
# I also tried Xerces and Xalan, and got this message fragment 
# (the whole
# message is too long to cut and paste):
# 
# 
# ÝFatal Error¨ StandardReportsPDF.xsl:1:39: Content is not allowed in
# prolog.
# javax.xml.transform.TransformerConfigurationException:
# javax.xml.transform.Trans
# formerException: org.xml.sax.SAXParseException: Content is 
# not allowed in
# prolog
# ..
# at
# org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transf
# ormerFactoryImpl.java:995)
# at
# com.stpaul.xsl.StylesheetCache.getTemplates(StylesheetCache.java:79)
# at com.stpaul.pdf.PDFGenerator.renderPDF(PDFGenerator.java:72)
# at
# com.stpaul.totalclient.lmrstdrpts.control.StandardRptBatchController.
# renderPDF(StandardRptBatchController.java:448)
# at
# com.stpaul.totalclient.lmrstdrpts.control.StandardRptBatchController.
# createPdfForResult(StandardRptBatchController.java:95)
# at
# com.stpaul.totalclient.lmrstdrpts.control.StandardRptBatchController.
# run(StandardRptBatchController.java:504)
# at java.lang.Thread.run(Thread.java:512)
# -
# 
# Here's the start of the XML declaration of the style sheet:
# 
# ?xml version=1.0 encoding=UTF-8?
# 
# 
# So both XML/XSL parsers are complaining about style sheet.  
# The run the
# same exact process on a Windows 2000 machine and it works flawlessly.
# 
# I remember that when 0.20.4 came out, one of the changes was 
# that it now
# works on EBCIDC machines.  But, I still get this error.
# 
# Does anybody know if this is an FOP problem or some sort of 
# problem with
# the XML/XSL processors, or with the encoding of the style sheet on the
# mainframe?  Ideas for fixes?
# 
# Any help is appreciated.
# 
# Thanks!!
# 
# 
# 
# 
# 
# -
# 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]



AW: Viewing PDF without AcrobatReader or FOP??

2002-11-18 Thread Müller, Markus
Hi Oleg,

when viewing PDFs with embedded fonts, you will see differences between the
platform specific and the Java version of AcrobatReader. The Java-version
does some ugly character spacing, embedded fonts are not displayed properly.
That's really not a *good* thing. And the fact that it has not been updated
since 1998 shows, that adobe is not interested in providing a real solution
for java.

Markus

# -Ursprüngliche Nachricht-
# Von: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
# Gesendet am: Samstag, 16. November 2002 18:41
# An: [EMAIL PROTECTED]
# Betreff: Re: Viewing PDF without AcrobatReader or FOP??
# 
# Müller, Markus wrote:
# 
#  we're just testing FOP to generate PDF on a host, then 
# sending the PDF
#  document in a way we don't know yet to some clients. The 
# clients should be
#  able to view (and perhaps to print) the document. Is this 
# possible without
#  AcrobatReader? The AcroRead for Java is not really a good thing,
# btw, what's wrong with it? I've been told it's ok despite the 
# fact that 
# it was not updated long time.
# 
#   and using
#  FOP only to display a file isn't a solution, too (since 
# it's too large). Has
#  anybody a little hint?
# If wanna high-quality pdf preview, I believe using Acrobat is 
# the only 
# way. Surely client must have Acrobat Reader installed, but 
# it's free and 
# absence of it can be detected in javascript.
# 
# -- 
# Oleg Tkachenko
# eXperanto team
# Multiconn Technologies, Israel
# 


Viewing PDF without AcrobatReader or FOP??

2002-11-15 Thread Müller, Markus
Hi there,

we're just testing FOP to generate PDF on a host, then sending the PDF
document in a way we don't know yet to some clients. The clients should be
able to view (and perhaps to print) the document. Is this possible without
AcrobatReader? The AcroRead for Java is not really a good thing, and using
FOP only to display a file isn't a solution, too (since it's too large). Has
anybody a little hint?

Markus


AW: FOP TrueType

2002-11-15 Thread Müller, Markus
Yes, ant is the tool you need. I think, it's described in the documentation.
MM

# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# Gesendet am: Freitag, 15. November 2002 13:37
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# How can I build my C:\fop-0.20.4\build\fop.jar with the new 
# Font? Using ant? 
# 
# I don't have a clue!
# 
# -Ursprüngliche Nachricht-
# Von: Scherler, Thorsten 
# Gesendet: Freitag, 15. November 2002 13:31
# An: [EMAIL PROTECTED]
# Cc: Wyonacms-Users (E-Mail)
# Betreff: AW: FOP TrueType
# 
# 
# Hi Markus, 
# I found this page (combined with what u have written):
# http://xml.apache.org/fop/fonts.html
# 
# I did (there is a error if you use the original 
# [...C:\myfonts\arial.ttf C:\myfonts\arial.ttf arial.xml]):
# java -cp 
# build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xa
# lan-2.3.1.jar;lib\batik.jar 
# org.apache.fop.fonts.apps.TTFReader C:\myfonts\arial.ttf 
# C:\myfonts\arial.xml 
# 
# Now I have:
# TTF Reader v1.1.1
# 
# Reading C:\myfonts\arial.ttf...
# 
# Number of glyphs in font: 1296
# Creating xml font file...
# 
# Creating CID encoded metrics
# Writing xml font file C:\myfonts\arial.xml...
# 
# This font contains no embedding license restrictions
# 
# Then I did:
# Register the fonts within FOP
# Edit conf/userconfig.xml and add entries for the font if the 
# fonts section, ie:
#  font metrics-file=arial.xml kerning=yes embed-file=arial.ttf
# font-triplet name=Arial style=normal weight=normal/
# font-triplet name=ArialMT style=normal weight=normal/
#  /font
# 
# BUT I am using FOP as servlet (Tomcat and cocoon). I now have 
# to compile a fop.jar with my userconfig.xml, or not?
# Then I have to replace the old fop.jar 
# @tomcat\webapps\cocoon\WEB-INF\lib. And then I have Arial 
# within fo, or not
# 
# Thanks for the help
# 
# -Ursprüngliche Nachricht-
# Von: Müller, Markus [mailto:[EMAIL PROTECTED]
# Gesendet: Freitag, 15. November 2002 12:55
# An: [EMAIL PROTECTED]
# Betreff: AW: FOP TrueType
# 
# 
# Hi,
# 
# you have to specify the class-libaries needed by fop. You can 
# do this in
# your commandline like this:
# 
# java -cp [path and name of jar-file] 
# org.apache.fop.fonts.apps.TTFReader
# c:\WINNT\Fonts\arial.ttf arial.xml
# 
# The JAR files you need I don't know exactly, but fop.jar will 
# be one of
# them. Take a look at fop.bat, from there you can copy the -cp 
#  part.
# 
# Hope, this will help you
# 
# Markus
# 
# # -Ursprüngliche Nachricht-
# # Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED]
# # Gesendet am: Freitag, 15. November 2002 12:10
# # An: Fop-User (E-Mail); Wyonacms-Users (E-Mail)
# # Betreff: FOP TrueType
# # 
# # Hello group,
# # 
# # I would like to do the following:
# # http://www.infosys.tuwien.ac.at/Services/Docu/XML/Fop-0.20.1/d
# # ocs/examples/advanced/cid-fonts.pdf
# # 
# # I want to add Arial to my reports I do that:
# # java org.apache.fop.fonts.apps.TTFReader 
# # c:\WINNT\Fonts\arial.ttf arial.xml
# # 
# # I have that:
# # Exception in thread main java.lang.NoClassDefFoundError: 
# # org/apache/fop/fonts/
# # apps/TTFReader
# # 
# # I am the absolute newbie in java!
# # 
# # Thanks for the help!
# # 
# #  Mit freundlichem Gruss,
# #  
# #  Thorsten Scherler
# #  Marketing / Telefonmarketing
# #  
# #  Weidmüller GmbH  Co.
# #  P.O. Box 2807
# #  33058 Paderborn
# #  Tel.:+ 49 - 5252-960-350
# #  Fax:+ 49 - 5252-960-116
# #  eMail: [EMAIL PROTECTED]
# #  http://www.weidmueller.de
# #  
# #  
# # 
# 


How to determine page position of current and last table-row?

2002-11-15 Thread Müller, Markus
Hi,
is it possible to determine if the current table row is the first one a new
page? 
Yours, Markus


Problem reading userconfig.xml on UNIX

2002-11-11 Thread Müller, Markus
Hi there,

I have trouble using the userconfig.xml on UNIX. FOP generates these
messages:
-- some lines omitted --
[DEBUG] OPTIONS
[DEBUG] user configuration file: /u/BSK27/fop0.20.4/conf/userconfig.xml
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] reading user configuration file
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[ERROR] Could not load user configuration file
/u/BSK27/fop0.20.4/conf/userconfig.xml - error: Content is not allowed in
prolog.
[ERROR] using default values
-- snip --

Who has problems with my config file? SAX2? FOP? What's wrong? The
userconfig.xml looks like this (and works fine on Windows):

-- begin --
!--!DOCTYPE configuration SYSTEM config.dtd--
!-- 
 this file contains templates which allow an user easy 
 configuration of Fop. Actually normally you don't need this
configuration 
 file, but if you need to change configuration, you should
 always use this file and *not* config.xml. 
 Usage: java org.apache.fop.apps.Fop -c userconfig.xml -fo fo-file -pdf
pdf-file
--
-- ... --

Suggestions welcome...

Markus


Re: Some seemingly simple Formatting Questions

2002-06-26 Thread Markus Wiese
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







Re: some help..

2002-06-24 Thread Markus Wiese



you might also try something like:

xsl:template 
match="[EMAIL PROTECTED]|[EMAIL PROTECTED]"
 !-- do your operation here 
--
/xsl:template

the brackets "perform" the test. the "|" serves as 
logical OR,
but to make sure your XML definitly contains the 
node with
some attribute, put some definition in your 
DTD.


markus


  -Ursprüngliche 
  Nachricht-Von: huzhl [EMAIL PROTECTED]An: [EMAIL PROTECTED] [EMAIL PROTECTED]Datum: 
  Montag, 24. Juni 2002 07:27Betreff: Re: some 
  help..
  you can use the "@" symbol to test the 
  attribut,
  
  xsl:template match="node1"
   xsl:if 
  test="@attr1" /*test whether has the 
  attribute attr1 or not*/
   /*do your operation at here*/
   /xsl:if
  /xsl:template
  
- Original Message - 
From: [EMAIL PROTECTED] 

To: [EMAIL PROTECTED] 
Sent: Monday, June 24, 2002 1:23 PM
Subject: some help..

Hi 
all,

I have 
aXML file like this..

root
 node1 attr1="efhg" 
attr2="efhef"/
 node2 attr2="erfje" 
attr3="efjef"/
/root

Is there any 
method/function in XSL to check whether
any of the 
attributes in the node exists..

Regards,

Vinod Nayak
i-flex solutions ltd.
Voice: (91)-228 43 00, x 6501 Fax:(91)-22-843 
13[EMAIL PROTECTED]


 
This message contains privileged and confidential information and is 
intended only for the individual named.If you are not the intended recipient 
you should not disseminate,distribute,store,print, copy or deliver this 
message.Please notify the sender immediately by e-mail if you have received 
this e-mail by mistake and delete this e-mail from your system.E-mail 
transmission cannot be guaranteed to be secure or error-free as information 
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or 
contain viruses.The sender therefore does not accept liability for any 
errors or omissions in the contents of this message which arise as a result 
of e-mail transmission. If verification is required please request a 
hard-copy version. 



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


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: Trouble with Pound signs

2002-05-29 Thread Markus Wiese
Try the appropriate Unicode Escape Sequence. Something like #x00A3; might
help.
At least it works for the Euro Sign (#x20AC;) for me.

markus
-Ursprüngliche Nachricht-
Von: Ian Taylor [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Mittwoch, 29. Mai 2002 13:14
Betreff: Trouble with Pound signs


I am encoding both the xml and xsl with UTF-8 and have had no problems with
rendering a pound sign, £, on our local machines.

However when this was tested on other machines the pound sign turned into a
square box.

What can I do to make sure that pound signs are always rendered on any
platform?

Thanks





drawing a table with different line-widths

2002-05-27 Thread Fries, Markus, fiscus GmbH, Bonn
Hi,


I have to layout a table like this:


=  --  =
=  -header  -  =
=  --  =

=  --  =
=  --  =
=--=
   .
   .
   .
=  - last   -  =
=  --  =
 

My first try was to define border properties on the header, the body and
around all cells. I thought I got it, but when I printed in postscript the
lines were stacked in each other. I used PDF first and that was fine. I need
to get PS though.


Now my second try looks like this

  
  fo:table
xsl:call-template name=Tabelle/
fo:table-body border-left=1.5pt border-right=1.5pt 
   border-top=0pt border-bottom=0pt
border-style=solid
xsl:apply-templates select=... mode=tabelle/
/fo:table-body
  /fo:table 
  

  xsl:template name=geheimhaltungsTabelle
fo:table-column column-width=50mm/
fo:table-column column-width=50mm/
fo:table-column column-width=50mm/
fo:table-header border-width=1.5pt border-style=solid
  fo:table-row
  fo:table-cellfo:block
font-weight=bold.../fo:block/fo:table-cell
  fo:table-cell border-top=0pt border-bottom=0pt 
 border-right=0.5pt border-left=0.5pt
border-style=solid
  fo:block font-weight=boldmiddle cell/fo:block/fo:table-cell
  fo:table-cellfo:block
font-weight=boldName/fo:block/fo:table-cell
  /fo:table-row
/fo:table-header
  /xsl:template

  xsl:template match=... mode=tabelle
fo:table-row
  fo:table-cell  border-top=0pt border-bottom=0.5pt
border-left=0pt border-right=0pt border-style=solid
fo:blockxsl:value-of select=...//fo:block/fo:table-cell
fo:table-cell  border-top=0pt border-bottom=0.5pt
border-left=0.5pt border-right=0.5pt border-style=solid
fo:blockxsl:value-of select=...//fo:block/fo:table-cell
  fo:table-cell  border-top=0pt border-bottom=0.5pt
border-left=0pt border-right=0pt border-style=solid
fo:blockxsl:value-of select=...//fo:block/fo:table-cell
/fo:table-row
  /xsl:template  

results in a gap between header and body. And of course I still have to fix
the bottom line.  I tried fop 0.20.2 and 0.20.3-2002-03-04.  I think it
might have s.th. to do with the border-collapse property, but as it seems
fop or I do not understand the spec.

Can anybody help please?

Best regards

Markus Fries





Re: Building a FO document with FOP

2002-04-30 Thread Markus Wiese
Hi Ismaeil,

I think Bhawana suggested: DB-JDBC-XML-XSL-FO-FOP-PDF,
this includes the additional xml document representation, but puts the
XSL:FO instructions outside your java, which would by bypassed
by java generated FO documents (your below mentioned construction)
It probably boils down to an efficiency decision, but the appealing
part of the xsl/xslt layer is the open architecture for applications you
might not even think of right now.

markus

-Ursprüngliche Nachricht-
Von: Ismaeil, Sameh Z [EMAIL PROTECTED]
An: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Datum: Dienstag, 30. April 2002 17:25
Betreff: RE: Building a FO document with FOP


Thanks Bhawana,

This is not exactly what I mean. I don't have XML data documens, I'm trying
to build a pure XSL:FO document through code, not transform an existing XML
to FO. It will go like this:
Data (from DB) --(Java code)-- FO document --(render with FOP)-- PDF

Any clue?

-Original Message-
From: Katiyar, Bhawana [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 5:05 PM
To: [EMAIL PROTECTED]
Subject: RE: Building a FO document with FOP


I guess it is better to build them as XML documents and use xsl:fo to
transform them to FO documents. It is much easier. You could use the XML to
render HTML, RTF or any other format. FOP programming is also much easier,
as you shift all the java programming burden of building the FO document to
FOP.
Bhawana

-Original Message-
From: Ismaeil, Sameh Z [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 10:37 AM
To: '[EMAIL PROTECTED]'
Subject: Building a FO document with FOP


Hello All,

We are trying to build FO documents through Java code, these documents will
be rendered with FOP. I would like to know whether it is recommended to
build them using the FOP classes that represent FO elements (FONode/FObj
and
its decendants), or whether it is better to build them as XML docuemnts and
use FOP for rendering only.

Thanks in advance




Re: Can I submit XSLT properties to FOP?

2002-04-29 Thread Markus Wiese
Hi Elmar,
consider doing it like this:
@java org.apache.xalan.xslt.Process -IN myXML.xml -XSL myXSL.xsl -OUT
myFO.fo -PARAM UserName Elmar Schalück
@java org.apache.fop.apps.Fop myFO.fo myPDF.pdf

markus


-Ursprüngliche Nachricht-
Von: Schalück, Elmar [EMAIL PROTECTED]
An: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Datum: Montag, 29. April 2002 10:53
Betreff: Can I submit XSLT properties to FOP?


Hi,
I like to use FOP to produce reports, based on a XSLT stylesheet.

So the call will look like
fop -xml myXML.xml -xsl myXSL.xsl -pdf myPDF.pdf

Now I need to parametrize the XSLT with the current date/time, with some
preselections, 

My idea is to have some more parameters for the command line:
fop -xml myXML.xml -xsl myXSL.xsl -Param=UserName Elmar Schalück
-Param=UserLanguage de -pdf myPDF.pdf

The XSLT stylesheet starts like
xsl:stylesheet
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:param name=UserName/
xsl:param name=UserLanguageen/xsl:param
...

Do you know of any means to fill in these parameters?

Mit freundlichen Grüßen
With kind regards

Elmar Schalück

__

Elmar Schalück
Advisory Software Developer
CEYONIQ AG
Winterstr. 49
33649 Bielefeld
Germany
Fon: +49 (0)521 9318-2108
Fax: +49 (0)521 9318-882150
E-Mail: [EMAIL PROTECTED]
http://www.ceyoniq.com
PGP-Fingerprint: BC78 7DEA 7A18 A6F2 A29D  F229 C68F 8C65 F7EE 898A







Re: Can I submit XSLT properties to FOP?

2002-04-29 Thread Markus Wiese
Servlet configuration?
Don't know yet, but I guess you will have to use 1 servlet taking use
of xalan and fop. (2 more servlets)

markus

-Ursprüngliche Nachricht-
Von: Baptiste Casanova [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Montag, 29. April 2002 11:52
Betreff: Re: Can I submit XSLT properties to FOP?


Hi Markus,
How could i do the same thing with embedded FOP ?

- Original Message -
From: Markus Wiese [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 29, 2002 11:17 AM
Subject: Re: Can I submit XSLT properties to FOP?


 Hi Elmar,
 consider doing it like this:
 @java org.apache.xalan.xslt.Process -IN myXML.xml -XSL myXSL.xsl -OUT
 myFO.fo -PARAM UserName Elmar Schalück
 @java org.apache.fop.apps.Fop myFO.fo myPDF.pdf

 markus


 -Ursprüngliche Nachricht-
 Von: Schalück, Elmar [EMAIL PROTECTED]
 An: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Datum: Montag, 29. April 2002 10:53
 Betreff: Can I submit XSLT properties to FOP?


 Hi,
 I like to use FOP to produce reports, based on a XSLT stylesheet.

 So the call will look like
 fop -xml myXML.xml -xsl myXSL.xsl -pdf myPDF.pdf

 Now I need to parametrize the XSLT with the current date/time, with some
 preselections, 

 My idea is to have some more parameters for the command line:
 fop -xml myXML.xml -xsl myXSL.xsl -Param=UserName Elmar Schalück
 -Param=UserLanguage de -pdf myPDF.pdf

 The XSLT stylesheet starts like
 xsl:stylesheet
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
  xmlns:fo=http://www.w3.org/1999/XSL/Format;
 xsl:param name=UserName/
 xsl:param name=UserLanguageen/xsl:param
 ...

 Do you know of any means to fill in these parameters?

 Mit freundlichen Grüßen
 With kind regards

 Elmar Schalück

 __

 Elmar Schalück
 Advisory Software Developer
 CEYONIQ AG
 Winterstr. 49
 33649 Bielefeld
 Germany
 Fon: +49 (0)521 9318-2108
 Fax: +49 (0)521 9318-882150
 E-Mail: [EMAIL PROTECTED]
 http://www.ceyoniq.com
 PGP-Fingerprint: BC78 7DEA 7A18 A6F2 A29D  F229 C68F 8C65 F7EE 898A








Re: Why is FO(P) a superior model than what most proprietary tools propose

2002-04-29 Thread Markus Wiese
Patrick,
don't be silly ;-). In my opinion XML via XSL FO to PDF is _the_
missing link between databases and printable documents. Of course
it's the transformation that matters, but without actual implementation
like the FO namespace you don't get far.

markus

-Ursprüngliche Nachricht-
Von: Patrick Andries [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Montag, 29. April 2002 18:05
Betreff: Re: Why is FO(P) a superior model than what most proprietary tools
propose




L Rutker wrote:




 From: Patrick Andries [EMAIL PROTECTED]
 Subject: Why is FO(P) a superior model than what most proprietary
 tools propose


 2) I understand that everything related with XML (XSLT/XSL-FO) has a
 modern flavour that few techies can resist, but what are the
 objectives reasons ?

 3) Are they any advantages to FO being integrated with XSLT that the
 proprietary tools would not have ?


 Consider that once you data is in XML you can use that same data to
 produce PDF, HTML VoiceML (for you automated telephone system) or SVG
 graphical representation of the data by just changing the stylesheet
 using XSLT. No need to have multiple unsynced data sources for your
 different output requirements


Isn't this the virtue of XSLT rather than XSL FO ?







Re: Fop in UNIX or Linux

2002-04-26 Thread Markus Wiese
Hi,
don't know about S.O Unix (are you talking about SCO?), but if you have
problems
with pathnames, try putting your true-type font, your userconfig.xml and
everything,
where your xml/xsl/fo resides and drop the pathnames at all.

markus
-Ursprüngliche Nachricht-
Von: Carlos Daniel Schafer [EMAIL PROTECTED]
An: Fop-Dev (Correo electrónico) fop-dev@xml.apache.org; Fop-User (Correo
electrónico) [EMAIL PROTECTED]
Datum: Freitag, 26. April 2002 14:56
Betreff: Fop in UNIX or Linux


Hi, all

I have generated a file XML with descritpions by the fonts specials
(barcode, arial, etc.), but I have put into S.O. UNIX or Linux.
In a the file xml, I have declarated into a file  the next sentences.

 font metrics-file=./webapps/site/fop/xml/i2of5NT.xml kerning=yes
embed-file=c:\winnt\fonts\I2OF5NT.ttf
font-triplet name=Interleaved2of5NT style=normal weight=normal
/
 /font


But, I have the problem with embed-file=c:\winnt\fonts\I2OF5NT.ttf,
I don't understand with the sentences embed-file when I used in S.O. Unix.
Where I put this file (.ttf) into Unix or Linux.





Re: FOP 0.20.3 - master reference issue

2002-04-25 Thread Markus Wiese



You're right, 
 fo:page-sequence-master 
master-name="basic"is just 
named and 
later on referenced 
by
 
fo:page-sequencemaster-reference="basic"
will do the trick

thanks a lot

markus




Re: FOP 0.20.3 - master reference issue

2002-04-24 Thread Markus Wiese
Hi,
can somebody provide the structure for a simple alternating page layout
(odd/even)? My previous working example broke with 0.20.3, could be halfway
fixed, but doesn't alternate anymore, because I am only able to reference
simple-page-master's in page-sequence, and not page-sequence-master's, which
do the alternating stuff,  anymore.

markus

-Ursprüngliche Nachricht-
Von: Peter B. West [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Mittwoch, 24. April 2002 06:23
Betreff: Re: FOP 0.20.3 - master reference issue


Josh,

There was a change in the spec. Page-masters (like simple-page-master)
have a master-name. Things that refer to page-masters (like
page-sequence) now have a master-reference instead of a master-name. You
will have to change your fo:s and whatever is generating them to conform.

Peter

Josh wrote:

 [ERROR]: 'master-reference' for 'fo:page-sequence' matches no
 'simple-page-master' or 'page-sequence-master'




FOP 0.20.3 - master reference issue

2002-04-24 Thread Markus Wiese
Hi,
example given, should result in an alternating odd/even layout by
referencing the page-sequence-master with the master-reference=basic but
fo:page-sequence master-reference=basic will show:

[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[ERROR]: 'master-reference' for 'fo:page-sequence'matches no
'simple-page-master
' or 'page-sequence-master'

?xml version=1.0 encoding=ISO-8859-1?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0
   xsl:template match=/
  fo:root
 fo:layout-master-set
fo:simple-page-master master-name=even
   page-height=29.7cm page-width=21cm
   margin-top=1cm margin-bottom=1cm
   margin-left=3cmmargin-right=2cm
fo:region-body margin-top=1cm
margin-bottom=2cm/
fo:region-before extent=1cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master
fo:simple-page-master master-name=odd
   page-height=29.7cm page-width=21cm
   margin-top=1cm margin-bottom=1cm
   margin-left=2cmmargin-right=3cm
fo:region-body margin-top=1cm margin-bottom=2cm/
fo:region-before extent=1cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master

fo:page-sequence-master master-reference=basic
   fo:repeatable-page-master-alternatives
  fo:conditional-page-master-reference master-name=even
odd-or-even=even/
  fo:conditional-page-master-reference master-name=odd
odd-or-even=odd/
  fo:conditional-page-master-reference master-name=odd/
   /fo:repeatable-page-master-alternatives
/fo:page-sequence-master
  /fo:layout-master-set
xsl:apply-templates select=java2cert/   !-- my
XML-root Element --
   /fo:root
   /xsl:template

   xsl:template match=java2cert
fo:page-sequence initial-page-number=1
  master-reference=even

!-- I'd like to reference basic here, to
 achieve alternating page-masters
 in 0.20.2 OK, probably because
 I didn't need to set 'master-reference',
 [ERROR] happens if you change to: master-reference=basic
 --

 fo:flow flow-name=xsl-region-body
xsl:apply-templates select=chapter/
/fo:flow
  /fo:page-sequence
   /xsl:template

Thanks for your attention

markus



euro-sign not working

2002-04-18 Thread Markus Wiese
Hello,
I guess this must be a no-brainer for at least somebody.
I even got embedded thai-letters rendered to pdf, but cannot
get a single euro sign to appear. I inconporated any ttf-font
showing the sign, I can think of, but to no avail.
Is using #x80; promising at all? Or do I have to embed
SVG or even GIF?




Re: euro-sign not working

2002-04-18 Thread Markus Wiese
Bingo!

-Ursprüngliche Nachricht-
Von: Jeremias Maerki [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Donnerstag, 18. April 2002 13:07
Betreff: Re: euro-sign not working


We're talking Unicode here, not Windows Encoding. Try #x20AC;
This works in doc/examples/fo/fonts.fo.

 I guess this must be a no-brainer for at least somebody.
 I even got embedded thai-letters rendered to pdf, but cannot
 get a single euro sign to appear. I inconporated any ttf-font
 showing the sign, I can think of, but to no avail.
 Is using #x80; promising at all? Or do I have to embed
 SVG or even GIF?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch





problem with attribute: visibility

2002-04-17 Thread Markus . Lehr
Hi, I´m trying to use the visibility-attribute but it doens´t work.

I´m using fop 0.20.01. and all I get is the following:

Warning: property - visibility is not implemented yet.

Has it something to do with the Fop version I´m using?

What I actually want to do is to create a blank line (fo:table-row)...

Can anybody help?

Thanks in advance

Markus




Antwort: Re: Antwort: RE : problem with attribute: visibility

2002-04-17 Thread Markus . Lehr
I´ve just tried it, but empty cells are ignored in the output pdf.




What I actually want to do is to create a blank line (fo:table-row)...



Couldn't you simply fill it with an empty cell that spans all columns.




Antwort: RE : Antwort: Re: Antwort: RE : problem with attribute: visibility

2002-04-17 Thread Markus . Lehr
Thank you Nicolas this works.

But you have to use #160; instead of nbsp; which obviously cannot be
processed.




just fill cells with non-breakable spaces

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 17 avril 2002 16:36
 À : [EMAIL PROTECTED]
 Objet : Antwort: Re: Antwort: RE : problem with attribute: visibility

 I´ve just tried it, but empty cells are ignored in the output pdf.




 What I actually want to do is to create a blank line (fo:table-row)...



 Couldn't you simply fill it with an empty cell that spans all columns.


AW: feature and limitation lists

2002-04-09 Thread Fries, Markus, fiscus GmbH, Bonn
Hi,

I think these should be added as well for fop-0.20.3-2002-03-04:

not implemented yet:
fo:block visibility=hidden
page-position=last


But what about wrong implementations?
Example: markers, or wrap-option=wrap 
  This works fine, if spaces are existing.  But it should wrap long 
  lines with no spaces at the boundaries as well.

It would make sense to add javadoc like comments to the
dtd's or xsd's.  You did not publish your small xslt yet? 

Regards

Markus Fries 

-Ursprüngliche Nachricht-
Von: MAISONNY Benoit [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 9. April 2002 11:33
An: '[EMAIL PROTECTED]'
Betreff: RE: feature and limitation lists


Here are some early results. All elements are listed, but only 
unimplemented attributes  child elements are shown within the
elements. Attributes values are not checked yet; additional comments
regarding partial implementation are not there yet neither.

Obviously it needs some clean-up, but I will probably not continue 
until 1-2 weeks from now (holidays :-).

As Chuck wrote, it is not 100% correct. I noticed white-space-
and linefeed-treatment are claimed implemented, though I thought
they were not yet. Also, I think that fo:float is not implemented 
neither. But I didn't check, maybe it is in 0.20.3. This is just a
proof of concept, so I don't care too much about accuracy just yet.

I did it using Chuck's DTD, not schema: I wrote a small XSLT that
walks through FO.dtd (converted to xsd) and checks if corresponding 
element/attribute exists in FOP.dtd (xsd). (Actually, this generates
an XML file looking like a XSchema, which is then converted to HTML.)

Chuck: a question about your xsd file: you grouped the attribute
types into xs:simpleType elements. But are we sure that a given
attribute is always implemented the same way in all elements that
has it?

Comments welcome.

Benoit

P.S. For the record, I am not doing this on behalf of Eurocontrol,
despite me using that email address.


 -Original Message-
 From: MAISONNY Benoit [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 02, 2002 12:05 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: feature and limitation lists
 
 
 Thanks for your 2 emails (that I couldn't read until today, sorry).
 
 As I wrote earlier, I will investigate how to automatically generate 
 unimplemented features documentation.
 
 Benoit
 
 
  -Original Message-
  From: Chuck Paussa [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 25, 2002 6:42 PM
  To: [EMAIL PROTECTED]
  Subject: Re: feature and limitation lists
  
  
  Here's an FOP specific xsd.  I sent the segregated DTD in a 
 previous 
  response on this same thread. It's a pain to make a usable 
 XSD from a 
  DTD because the conversion tools tend to explode everything 
  out and you 
  get enormous repeating elements. Anyway. Here it is for what 
  it's worth.
  
  Chuck Paussa
  
  MAISONNY Benoit wrote:
  
  Say we have an FO schema (possibly converted from that 
  fo.dtd) and from that
  we remove what FOP doesn't do yet. Then we can easily 
  compare both schemas
  with XSLT and generate a nice report. (I would volunteer to 
  try and write
  that XSLT/report if people think it can be useful).
  
  Then we can add comments or annotations to tell about 
  workarounds and about
  what is implemented BUT still is not working as expected.
  
  However, I suppose it would be a lot of work to remove 
  unimplemented things
  from fo.dtd or fo.xsd. What do you think?
  
  Benoit
  
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 21, 2002 1:33 PM
  To: [EMAIL PROTECTED]
  Subject: RE: feature and limitation lists
  
  
  Hello, 
  Markus wrote: 
  
  If you have any suggestions about how to do this easily then 
  share your ideas with us. 
  
  I've suggested (or asked) to create a special fop.dtd (not a 
  fo.dtd). 
  This wouldn't regard all limitation and no workarounds, but 
  it would be a
  very good tool for imlementing applications using FOP.
  E.g.: 
  fo.dtd (I know that there's no official fo.dtd, I took the 
  one created by 
  Nikolai Grigoriev [EMAIL PROTECTED]): 
  -8X8X--- 
  !ENTITY % area-properties  
clip  CDATA  #IMPLIED 
[..] 
   
  [ ... block-properties is an entity based (indirectly) on 
  area-properties
  ... ] 
  !ELEMENT fo:block (#PCDATA | fo:initial-property-set | 
  %basic-inlines; |
  %basic-blocks; | %out-of-lines; | %wrappers;)*
  !ATTLIST fo:block 
%block-properties; 
  
  -8X8X--- 
  
  
  FOP.dtd: 
  -8X8X--- 
  !ENTITY % area-properties  
!-- clip  CDATA  #IMPLIED  not implemented by FOP yet --- 
 [..] 
   
  [ ... block-properties is an entity based (indirectly) on 
  area-properties
  ... ] 
  !ELEMENT fo:block (#PCDATA | fo:initial-property-set | 
  %basic-inlines; |
  %basic-blocks; | %out-of-lines; | %wrappers;)*
  !ATTLIST fo:block 
%block

feature and limitation lists

2002-03-21 Thread Fries, Markus, fiscus GmbH, Bonn
Hi,

a lot of questions on this list are caused by properties which are not
implemented.  Often there are workarounds though.  I think it would make
sense to put some real effort into
http://xml.apache.org/fop/limitations.html and
http://xml.apache.org/fop/implemented.html.  Or maybe there is such a
collection already of which I don't know?

Regards,

Markus Fries


AW: feature and limitation lists

2002-03-21 Thread Fries, Markus, fiscus GmbH, Bonn
On 2002.03.21 09:47 Fries, Markus, fiscus GmbH, Bonn wrote:
 Hi,
 
 a lot of questions on this list are caused by properties which are not
 implemented.  Often there are workarounds though.  I think it would make
 sense to put some real effort into
 http://xml.apache.org/fop/limitations.html and
 http://xml.apache.org/fop/implemented.html.  Or maybe there is such a
 collection already of which I don't know?
 
 Regards,
 
 Markus Fries
 

Hi,

If you have any suggestions about how to do this easily then share your 
ideas with us.

Do you have some volunteers in mind to put the real effort into getting 
this done?

Hi,

I can think of one volunteer so far :).  I have to do some documentation on
that stuff for my project anyway and if my supervisor does not mind I can
share that.  



Jens:
I've suggested (or asked) to create a special fop.dtd (not a fo.dtd). 
This wouldn't regard all limitation and no workarounds, but it would be a
very good tool for imlementing applications using FOP.

 ...
 A fop.dtd will answer all these question like: Feature XYZ is not working,
is it a bug in my FO 
 document or a missing FOP feature. Maybe workarounds can be mentioned in
the fop.dtd, too.
 Since fo.dtd exists, it wouldn't be too much work to add these comments. 

Yes, I think this would be very helpful.  But it has one drawback though.
You realize only after 
implementing that s.th. doesn't work and expensive rework is necessary.
Anyway the fop.dtd sounds 
like a very good start.  When it gets running we can think of rearranging
the collected information
in addiditional documentation.   

What do you think?

Best regards

Markus Fries


New Problems runnig FOP

2002-03-21 Thread Markus . Lehr
Hi Christian, your hint was good.
I executed the fop.bat but I got two new problems now.
I had to delete the Xalan.jar and xerces.jar from the classpath, so that the
changes took effect, now I can´t use xalan and xerces anymore (at least not, if
I want to use fop...), which is a minor problem but a little bit unnerving.

If I want to start fop from command line, it now comes up with the error
message: java.lang.NoClassDefFoundError: org/xml/sax/SAXException
Shouldn´t this be handled by the xerces-1.2.3.jar?

Can somebody help?...Please

Markus




Problems running FOP

2002-03-20 Thread Markus . Lehr
Hi, I have some difficulties running Fop and I´m trying to fix it for more than
a day now.
When I´m trying to start Fop from command line, it returns:
Exception in thread main java.lang.NoClassDefFound Error:
org/apache/avalon/framework/logger/loggable

I was able to fix some similar Exceptions by adding various jar-files to the
classpath, in fact I added (almost?) every jar-file... from
avalon-framework-4.1.1.jar to xerces-jar, but it won´t help.
I´m using fop-version 0.20.3 and I have installed xalan (which runs
perfectly...).

Can somebody please help?




Antwort: Re: Problems running FOP

2002-03-20 Thread Markus . Lehr
I´m using Windows NT 4.0 Service pack 6. And I´ve got the
avalon-framework-4.1.1.jar in the classpath, which I added manually.

I copied all jars to a  directory and then added them all to the classpath (so I
never really executed the fop.bat). Do you think this could cause the problems?

Thanks

Markus