Re: Code Style, was Re: PDF serialization

2001-07-19 Thread Tore Engvig



On Thu, 19 Jul 2001, Mark Lillywhite wrote:

 Sure. Monday the 23rd evening (GMT) is codeformatting day unless somebody
 protests.
 
 Would it be possible to wait for a day or two before setting a firm
 date? I hope to have my pipelining stuff completed today and I would
 like to at least get an opinion on their suitability for inclusion
 before this goes ahead. While the changes aren't very big they will be
 very difficult to apply after the code is reformatted.

I guess it'll take more than a few days to look at it, better postone it a
week. So monday the 30th is codeformatting day!


Tore



 I'm just asking for a couple of day's grace, and the time of a committer
 to take a look at them and let me know if they are suitable or not.

 Regards
 Mark


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




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




Re: Extracting xml data(different fonts) and putting them in same block???

2001-07-19 Thread rajeev nair

hello,
I really want to use xml file like...
?xml version=1.0?
body
a1
'Ignore'
/a1
a2
cVu dks fDyd dhft,- iwjs nLrkost esa ;g 'kCn ,sls gh
NksM+ nsus ds fy,
/a2
/body

and to use xsl file as given already so that i can
make corresponding pdf.If i remove the fo:inline and 
use fo:block instead then i'm able to make pdf.but i
need the data in a1,a2 in same line in same
block.If i remove starting fo:block error message
fo:inline can't be include directly in fo:flow element
is occuring.
please take a look.
regards
rajiv

--- Jeremias Maerki [EMAIL PROTECTED]
wrote:
 Hi Rajiv
 
  Thanks a lot again for ur suggestion.
  Ur suggestions are absolutely right.
  But sir,when i want to extract the xml tagged data
  from different tags in an xml file and to make
 them as
  a single paragraph without line break,what will i
  do
  I tried as below 
  
  xsl:for-each select=body/a1
  fo:block font-size=10pt font-family=serif 
  line-height=14pt  text-align=justify
  wrap-option=wrap
  xsl:value-of select=.//xsl:for-each
  xsl:for-each select=body/a2
  
  fo:inline font-size=10pt font-family=Richa 
  line-height=14pt  text-align=justify
  space-after.optimum=10ptxsl:value-of
 select=./
  /xsl:for-each
  /fo:inline/fo:inline
  /fo:block
  
  but not working.Do u have any suggestion??
  thanx in advance.
 
 You need to take the fo:block out of the first
 xsl:for-each, because the
 above is not well-formed XML. But this is XSLT, not
 XSL:FO.
 
 Jeremias Märki
 
 mailto:[EMAIL PROTECTED]
 
 OUTLINE AG
 Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
 Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
 Internet http://www.outline.ch
 
 

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


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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




Re: Extracting xml data(different fonts) and putting them in same block???

2001-07-19 Thread Jeremias Maerki

Rajiv

 Thanks a lot for ur kind consideration.
 Yeah,i'm using xslt but all the tags of xslfo is
 working well in xslt.My actual need is to make pdf
 from a pure xml data file with xslt by using fop.
 So it's necessary for me to use .xsl instead of .fo
 file.

I don't want you to give up XSLT. What I'm trying to tell you is that
your problem has nothing to do with XSL:FO but with XSLT. It's: How do I
have to write my XSLT-Stylesheet to get a valid XSL:FO file which
results in what I want?

Jeremias Märki

mailto:[EMAIL PROTECTED]

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


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




display-graphic or external-graphic and unsupported bmp format

2001-07-19 Thread FLBAUMGARTEN

Hello ...,

I´ve a little problem using the display-graphic formatting object.
This is the fo-file that shall be transformed in pdf-format:

fo:block text-align=centered
  fo:display-graphic href=formula02.gif/
/fo:block

This is what comes out:

FOP 0.12.1
using SAX parser org.apache.xerces.parsers.SAXParser
using renderer org.apache.fop.render.pdf.PDFRenderer
using element mapping org.apache.fop.fo.StandardElementMapping
using element mapping org.apache.fop.svg.SVGElementMapping
building formatting object tree
setting up fonts
formatting FOs into areas
 [1Unsupported bmp format
FATAL ERROR: null

Does the fop 12 not support any pictures at all? Is it the format? Actually
it doesm´t support real bmp-format either. so what can I do to show pictures
in the pdf file?
I tried the same thing with a newer fop Version and external-graphic. Does someone 
know the problem?
Thanks in advance.

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




SV: Unknown characters!

2001-07-19 Thread Klosa Uwe

Thanks Tore,

this answer was I afraid for. :)

Uwe

-Ursprungligt meddelande-
Fran: Tore Engvig [mailto:[EMAIL PROTECTED]]
Skickat: den 19 juli 2001 14:18
Till: '[EMAIL PROTECTED]'
Amne: Re: Unknown characters!




On Thu, 19 Jul 2001, Klosa Uwe wrote:

 Hi,

 I'm using an embedded ttf-font to show create my pdf-files. But there are
a
 few characters, which are unkown in this font. But i found them in the
 symbol and zapfdingbats font. How can i map these characters to these two
 fonts? Is there a file or have I to do this with xsl:fo? Who can help me?

The easiest solution is to find a font that contains all your characters :)

Otherwise I think you have to edit your .fo and change all occurences of
these special charatcers to fo:inline font-family=symbolspecial
characters/fo:inline


Tore



 Uwe

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




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

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




Re: FOP in a servlet under load

2001-07-19 Thread Weiqi Gao

On 19 Jul 2001 15:07:31 +1000, Mark Lillywhite wrote:
 
  handle concurrent requests.  I simply cannot queue up all
  the requests and process then one at a time.
 
 Why not? It would be pretty easy to make a queue up that processes
 FOP objects serially, blocking the servlet thread until the
 requested object is formatted. With a centralised Queue you could
 then select the number of FOP processors that are processing the
 entries on the queue. I have a nice multithreaded Queue
 implementation that allows multiple servers on a single queue
 with multiple submitters - it doesn't block the enqueue caller,
 but that wouldn't be too difficult. That way you can have the
 right number of threads for the number of CPUs you have, and you
 should get better overall performance and much less memory usage.
 Sure, the servlet thread(s) will block waiting for processing, but
 that's what happens anyway, right?

I agree with you here.  I'm in favor of using a thread pool to regulate
the FOP processing but that violates our 'guidelines and best practices'
of not to use threads in user code.  This is to make the poor guy who
replaced Weiqi have an easier life maintaining the code.

I also have the code to queue up requests, inspired by Allan Holub's
articles, and later a book, on Threading in JavaWorld.  It uses the
Active Object pattern, which is described in Doug Schmidt's book on
Pattern Oriented Software Architecture II
(http://www.cs.wustl.edu/~schmidt/).

-- 
Weiqi Gao
[EMAIL PROTECTED]


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




getting an external-graphic from xml in pdf

2001-07-19 Thread FLBAUMGARTEN

The external-graphic fo works if it´s in the fo-file.
Now my problem goes a little further.

The picture is embedded in the xml file like this:

PICTURE source=Bilder/formula.gif /

To show this in a browser my xsl-file looks like this and it works:

xsl:template match=//PICTURE
DIV align=center
IMG BORDER=0
xsl:attribute name=src
xsl:value-of select=//PICTURE/@source/
/xsl:attribute
/IMG
/DIV
/xsl:template

But what do I do to make the transformation to pdf with fo possible since the 
recommendation says to use

src:file:... like this

The file formula.gif is only embedded in the xml file and should not just be in the 
xsl file.

Now I want to add the attribute which would be no problem without the file: thing.
It should look somehow like this, but I don´t know how to add this in the quotation 
marks.

xsl:template match=//PICTURE
 fo:block
  fo:external-graphic text-align=center
   xsl:attribute name=src
xsl:value-of select=//PICTURE/@source/
   /xsl:attribute
  /fo:external-graphic
 /fo:block
/xsl:template

This of course doesn´t work.

Can somebody help me with this??

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




Re: getting an external-graphic from xml in pdf

2001-07-19 Thread Thieler Jens

I suppose this question to be OT even in fop-user.
Anyhow, study the appended code
and above all study some XSLT tutorials.

?xml version=1.0?
xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
  xsl:template match=/
fo:root
  xsl:apply-templates /
/fo:root
  /xsl:template
  
  xsl:template match=//PICTURE
fo:block
  fo:external-graphic
xsl:attribute name=src
  xsl:textfile:/xsl:text
  xsl:value-of select=@source /
/xsl:attribute
  /fo:external-graphic
/fo:block
  /xsl:template

  xsl:template match=//PUNCTURE
xsl:variable name=source
  xsl:value-of select=@source /
/xsl:variable
fo:block
  fo:external-graphic src=file:{$source} /
/fo:block
  /xsl:template
/xsl:stylesheet

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 19. Juli 2001 16:19
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]

...

But what do I do to make the transformation to pdf with fo possible since
the recommendation says to use 

src:file:... like this  

The file formula.gif is only embedded in the xml file and should not just
be in the xsl file.

Now I want to add the attribute which would be no problem without the
file: thing.
It should look somehow like this, but I don´t know how to add this in the
quotation marks.

xsl:template match=//PICTURE
 fo:block
  fo:external-graphic text-align=center
   xsl:attribute name=src
xsl:value-of select=//PICTURE/@source/
   /xsl:attribute
  /fo:external-graphic
 /fo:block 
/xsl:template

This of course doesn´t work.

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




Re: Can't build fop: Hangs after Starting Ant...

2001-07-19 Thread Gregor N. Purdy

Arved --
Thanks for the reply.

 Could it be a line-ending issue? This has bitten us a few times, depending 
 on what machine a committer was on when they committed UNIX shell scripts, 
 and if they weren't careful. I did it a time or two myself, committing the 
 shell scripts with DOS line endings.
build.sh appears to be in proper *nix format.

 Failing that, what happens when you set the environment variables by hand, 
 and then execute the final command by itself, not through the script...still 
 no joy?
No joy.

 Can you run your current Ant on other build files?

I don't use Ant for anything else.

 What version of Ant are you using? Try Ant 1.3 if all else fails.

I just installed the 1.3-2 RPMs for Ant from jakarta.apache.org,
but it seems to me from build.sh that a private version of ant.jar is
used...

--


Regards,

-- Gregor
 _ 
/ \
   Gregor N. Purdy  [EMAIL PROTECTED]
   Focus Research, Inc.http://www.focusresearch.com/
   8080 Beckett Center Drive #203   513-860-3570 vox
   West Chester, OH 45069   513-860-3579 fax
\_/


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




RE: userconfig in AIX.

2001-07-19 Thread Todd Pierce





  -Original Message-From: David Ryan 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 19, 2001 12:33 
  PMTo: [EMAIL PROTECTED]Subject: userconfig in 
  AIX.
  Hi..I'm attempting to run FOP 0.19.0 under AIX using 
  WebSphere Java 1.2.2. Mostthings seems to be working ok. My 
  problem is that I can't seem to load myown user configuration file. 
  Using the Fop command line program..java -classpath fop.jar 
  org.apache.fop.apps.Fop -c "conf/userconfig.xml" -fofonts.fo 
  -pdffonts.pdf---I get the following message.reading user 
  configuration fileCan't find user configuration file 
  conf/userconfig.xmlusing default values--I have tried copying 
  the config file into the current directory. I've triedproviding the 
  whole path /.../userconfig.xml. I've tried renaming the file.In the 
  end I tried writing my own code to test if it was related to fopcommand 
  line code. static void main( String[] args ) 
  { try { Options options = 
  null; String pathFonts = 
  null; InputSource foFile = new InputSource( new 
  FileInputStream("fonts.fo")); FileOutputStream out 
  = new FileOutputStream( "fonts.pdf" ); // options = new 
  Options(new 
  File("/home/davidr/Fop19/userconfig.xml")); 
  options = new Options(); 
  options.loadUserconfiguration("userconfig.xml"); 
  Driver driver = new Driver(); 
  driver.setRenderer(Driver.RENDER_PDF); 
  driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping"); 
  driver.setOutputStream(out); 
  driver.buildFOTree(createParser(), foFile); 
  driver.format(); driver.render(); } 
  catch (Exception e) { System.out.println("Error in 
  Main"); e.printStackTrace(); } 
  }You will notice, I even tried different methods of setting 
  options. Everytime I get the same error. I can only assume 
  this is a bug related to AIX?Anyone seen this problem, or can suggest a 
  solution or 
workaround?Thanks..David.


optimized pdf

2001-07-19 Thread Darrel Riekhof

We are thinking about using FOP to produce large PDF reports that will be
served to web clients.  However, the PDF files that FOP produces are not
optimized.  So, the reader client will have to download the entire PDF file
before viewing the first page.  If the PDFs were optimized, then clients
could see pages before the whole PDF was on the client.  Detail about this
at:

http://www.adobe.com/support/techguides/acrobat/byteserve/byteservmain.html

and

http://support.adobe.com/devsup/devsup.nsf/docs/50959.htm

Is there a way to make FOP produce optimized PDF Files, or a way to produce
the files in FOP, then automatically run then through some other (Adobe)
product that will optimize them before serving to the clients?

Darrel

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




Re: Can't build fop: Hangs after Starting Ant...

2001-07-19 Thread Arved Sandstrom

At 11:34 AM 7/19/01 -0400, Gregor N. Purdy wrote:
 Can you run your current Ant on other build files?

I don't use Ant for anything else.

Well, just a little trial one, one single super-simple target...just to 
eliminate Ant itself as being problematic.

 What version of Ant are you using? Try Ant 1.3 if all else fails.

I just installed the 1.3-2 RPMs for Ant from jakarta.apache.org,
but it seems to me from build.sh that a private version of ant.jar is
used...

Hmmm, we're talking about UNIX and strange lack of evidence...permissions on 
directories?

Regards,
Arved

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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




[Bug 2243] - extra space at the beginning of next line after line feed

2001-07-19 Thread bugzilla

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2243

*** shadow/2243 Tue Jun 26 18:17:32 2001
--- shadow/2243.tmp.16451   Thu Jul 19 18:13:24 2001
***
*** 4,10 
  |Bug #: 2243Product: Fop |
  |   Status: NEW Version: all |
  |   Resolution:Platform: PC  |
! | Severity: Normal   OS/Version: Windows NT/2K   |
  | Priority: Other Component: general |
  ++
  |  Assigned To: [EMAIL PROTECTED]   |
--- 4,10 
  |Bug #: 2243Product: Fop |
  |   Status: NEW Version: all |
  |   Resolution:Platform: PC  |
! | Severity: MajorOS/Version: Windows NT/2K   |
  | Priority: Other Component: general |
  ++
  |  Assigned To: [EMAIL PROTECTED]   |

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




FOP jar and patches available

2001-07-19 Thread Mark Lillywhite

Hey Fopstars

I've finally managed to post my diffs, JARs, tars and output samples, 
along with a fairly lengthy explanation of what I've done, to the web. 
This includes a PDF bug fix so that Acrobat should work again, now. 
Check it all out at:

http://www.inomial.com/fop

Let me know if any links are dead or you have any problems. Instructions 
to applying the patch are on the web pages. The source and JARs are 
against the current CVS, updated only minutes before I sent this email. 
Note that I use Unix (Linux) so I don't know how patch/diffs/cvs/etc 
work on That Other Operating System.

Feedback is definitely welcome, updates and patches etc likewise.

All modified files are commented.

Regards
Mark


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