AW: Newbie question about line breaks

2003-04-30 Thread Dipl.-Oec. Harald Meyer
Thanks, this helps! :-)

 -Ursprungliche Nachricht-
 Von: Toufic Nehme [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 29. April 2003 19:17
 An: [EMAIL PROTECTED]
 Betreff: Re: Newbie question about line breaks
 
 
 Add this in your fo:block
 
 white-space-collapse=false  linefeed-treatment=preserve
 white-space-treatment=preserve
 
 Hope this helps.
 
 Dipl.-Oec. Harald Meyer wrote:
 
  Hello everyone,
 
  I have a question about line breaks (maybe too simple for some 
 of you ;-)).
 
  My XML:
  ...
  data
  valuehere
  is
  my
  text/value
  /data
  ...
 
  I want to keep the line breaks in my PDF output. But how do I 
 have to say
  that in XSL:FO???
 
  Thanks
  Harald
 
  -
  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: Newbie question about line breaks

2003-04-30 Thread Dipl.-Oec. Harald Meyer
 See:
 http://xml.apache.org/fop/fo.html#fo-preformat

 Also, there are Unicode paragraph separator (U+2029) and line separator
 (U+2028) characters that can be used for this purpose if you place them in
 XML. Don't hold me to this, but I think they work in FOP.

 Victor Mote


The separators didn't fit in my case because the text is from a database
request.
For hardcoded text it may be useful...



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



Newbie question about line breaks

2003-04-29 Thread Dipl.-Oec. Harald Meyer
Hello everyone,

I have a question about line breaks (maybe too simple for some of you ;-)).

My XML:
...
data
valuehere
is
my
text/value
/data
...

I want to keep the line breaks in my PDF output. But how do I have to say
that in XSL:FO???

Thanks
Harald



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



Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Dipl.-Oec. Harald Meyer
Hello everybody,

as I get a / by zero error under FOP 0.20.3 I want to upgrade to 0.20.5rc.
Unfortunately now I get a different error:

C:\fop\fop-0.20.5rcjava -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\ava
lon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop -xml
C:\Inetpub\honeywell\quotation\xml\200443.xml -d -xsl
C:\Inetpub\honeywell\quotation\xml2pdf.xsl
C:\Inetpub\honeywell\quotation\pdf\200443.pdf
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/Logger
at org.apache.fop.apps.Fop.main(Fop.java:16)

Has someone experienced something similar?
By the way ... the / by zero error was already posted in January, but I
didn't find any solution for it. Has anyone some hints for me? ;-)

Thanks
Harald



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



AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Dipl.-Oec. Harald Meyer
 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\xalan-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]



AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Dipl.-Oec. Harald Meyer
But in the XML file is this:

?xml version=1.0 encoding=UTF-8?

I guess it is correct 

 -Ursprüngliche Nachricht-
 Von: Müller, Markus [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 19. März 2003 15:42
 An: [EMAIL PROTECTED]
 Betreff: AW: Upgrade 0.20.3 to 0.20.5rc


 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]





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



AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Dipl.-Oec. Harald Meyer
 Did you modify the source code? If not, try to omit the encoding tag or
 try iso-8859-1.

No, I didn't modify the sorce code ( I am no Java programmer at all ).



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



AW: displaying 2 texts side by side

2003-01-06 Thread Harald Meyer
 Hi all,

 In a table column, I need to display 2 texts from 2 different
 nodes side by side.
 If I use 2 blocks, 2 texts gets displayed one below the other..
 if I write the 2 texts within the same block, no space is
 included between them.
 Please suggest some solution.

I would suggest a table with different cells for the texts. You can give
those cells a spacing to have more space between them.

Harald



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



AW: displaying 2 texts side by side

2003-01-06 Thread Harald Meyer
 Thanks Herald,

 but the thing is that, I not sure of only 2 texts. There may be
 more than 2. And the final width of the cell in which these texts
 are displayed
 should be constant.

It may be possible to have a query in your XSL to determin how many texts
there will be...


 One more thing is that the cell has border color. There should not be
 borders between the texts..

No problem. You can set the spacing to 0 ... so there will be no border.


Harald



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



AW: Tables

2002-11-26 Thread Harald Meyer
 Where row 1 is made of one cell but row 2 contains different number of
 cells.
 ?
 Or shall I make two different tables?

You can work with the attribute number-columns-spanned for table-cell to
have cells span several columns.

Harald



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



AW: Converting FOP to HTML

2002-11-22 Thread Harald Meyer
Thorsten Scherler wrote:
 Hi Vladimir,

 you can c'n paste from PDF! e.g. with Acrobat Reader 5.0 you can prevent
 c'n paste or allow it. you can set a password and so on. I am not sure
 whether you can tell fop to pass that properties? But I can c'n
 past my pdf!

 King regards
 Thorsten

Unfortunately FOP still isn't able to protect its generated PDF. If you want
to do that you have to use external tools like itext.

--
Dipl. oec. Harald Meyer | Entwicklung
Cybay New Media GmbH | http://www.cybay.de



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



multiple page table

2002-04-24 Thread Harald Meyer
I have a table that spans several pages in my document. I want to have the
table header repeated on every page that the table spans. How is it done?

Harald




external-graphic

2002-04-23 Thread Harald Meyer
Hello,

I have a problem with external graphics. FOP seems to ignore any settings of
content-height and content-width. It always puts out the graphic at the same
size.

Harald




non-editable PDF

2002-04-17 Thread Harald Meyer
I want FOP to generate a non-editable PDF document. How is it done?

Thanks
Harald