SVG rendering in release 0.20.3

2002-04-12 Thread Matthew L. Avizinis
Hello all,

This used to work in version 0.20.2 and 0.20.3rc


  http://www.w3.org/2000/svg";
width="{concat(@width,'mm')}" height="{concat(@height,'mm')}"
xml:space="preserve">
 
   
 
 
  


It doesn't now in the last 0.20.3.  What happens is the box with the border
is drawn but the image is replaced by a broken svg picture.  There are no
error messages.  Is there some change between versions that I have to change
the above code or is there a change in classpaths or something else.  I
don't see anything mentioned in the CHANGES file.

thanks in advance,
   Matthew L. Avizinis 
Gleim Publications, Inc.
   4201 NW 95th Blvd.
 Gainesville, FL 32606
(352)-375-0772 ext. 101
  www.gleim.com 



Re: document properties

2002-04-12 Thread Keiron Liddle
At the moment these things are not available.
The creation date can be set from the current date and the title can come 
from the fo:title.
It may be possible to create an extension to handle the other values 
similar to the bookmark extension.

So these values have been considered but they are not implemented yet.
On 2002.04.11 22:34 Chris Faulkner wrote:
Hello
Is there anyway to set document author, creation date and so on with FOP
in the production of the documents ? I can't see it anything in the spec
and FO is all about formatting objects so I suppose not. But f
anyone knows of a way to do it or other software (hopefully open source)
which will do it after the event, that would be very useful.
In Acrobat 4 reader (File->Document Info->Security), there are other
document-wide properties that it would be nice to be able to set, for
setting passwords and so on.  Can these be set ?
Thanks
Chris


Re: SVG rendering in release 0.20.3

2002-04-12 Thread Keiron Liddle
I suspect this is a base url problem.
Are you embedding?, is the base directory set?
Is your URL correct?
On 2002.04.12 03:39 Matthew L. Avizinis wrote:
Hello all,
This used to work in version 0.20.2 and 0.20.3rc

  http://www.w3.org/2000/svg";
width="{concat(@width,'mm')}" height="{concat(@height,'mm')}"
xml:space="preserve">
 
   
 
 
  

It doesn't now in the last 0.20.3.  What happens is the box with the
border
is drawn but the image is replaced by a broken svg picture.  There are no
error messages.  Is there some change between versions that I have to
change
the above code or is there a change in classpaths or something else.  I
don't see anything mentioned in the CHANGES file.


Re: Embedding problem

2002-04-12 Thread Guillaume Patin
I had the same problem, you should try my code :

try {

XSLTInputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);

XMLReader parser =
XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");

Driver driver = new Driver();
driver.setLogger(log);
driver.setRenderer(Driver.RENDER_PDF);
driver.setOutputStream(new FileOutputStream(pdfFile));
ContentHandler contentHandler = driver.getContentHandler();
parser.setContentHandler(contentHandler);
driver.render(inputHandler.getParser(), inputHandler.getInputSource());

   } catch(Exception e){
System.out.println("FOP Exception " + e.getMessage());

   }

As a matter of fact, you must pick up de contentHandler from fop and put it
in the parser

Hope it'll help you...
Guillaume Patin

- Original Message -
From: Oliver Charlet <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 9:01 PM
Subject: Embedding problem


> Hi,
>
> I too have a problem embedding fop in my application.
> the following code (used inside a servlet) produces a zero byte pdf-file.
> xmlFile and xslFile hold an absolute Path to the input-files.
>
> ***
> ...
> org.apache.fop.apps.Driver driver = new Driver();
>
driver.setLogger(Hierarchy.getDefaultHierarchy().getLoggerFor(PDFProxy.class
> .getName()));
> driver.setErrorDump(true);
> driver.setRenderer(Driver.RENDER_PDF);
> InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
> XMLReader parser = inputHandler.getParser();
> FileOutputStream fout = new FileOutputStream(new File("test.pdf"));
> driver.setOutputStream(fout);
> driver.render(parser, inputHandler.getInputSource());
> ...
> ***
>
> The Log says:
>
> DEBUG   10185   [fop ] (): using SAX parser
> org.apache.xerces.parsers.SAXParser
>
> which is, as I understand, not an error. It seems to me, that the
generation
> is not started at all. when I try exactly the same from the commandline,
it
> just works fine.
> I have no clue what's happening inside the Driver here. Any help is
strongly
> appreciated!
>
> Thanks for listening
> olli
>



problem with embedding fop solved

2002-04-12 Thread Marianne von den Driesch und Viktor Goebel
We used the Oracle JDeveloper to edit the Java application. Some of the 
libraries supplied by FOP are already available in the Oracle Java Packages. 
We had to remove the Oracle Java Packages and to add only the FOP Packages 
and the problems were solved.

The code from Mr.Fischer worked:

import org.apache.log.*;

public class EmbeddingFOP_1
{
  public static void main(String[] args) throws Exception 
  {
try 
{
  javax.xml.transform.stream.StreamSource xmlSource=new 
javax.xml.transform.stream.StreamSource(new java.io.File("D:\\glossary.xml"));
  javax.xml.transform.stream.StreamSource xslSource=new 
javax.xml.transform.stream.StreamSource(new java.io.File("D:\\glossary.xsl"));
  javax.xml.transform.Transformer 
transformer=javax.xml.transform.TransformerFactory.newInstance().newTransformer(xslSource);

  Logger log;
  Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
  log = hierarchy.getLoggerFor("fop");
  log.setPriority(Priority.WARN);

  org.apache.fop.apps.Driver driver=new org.apache.fop.apps.Driver();
  driver.setLogger(log);
  driver.setOutputStream(new 
java.io.FileOutputStream("D:\\glossary.pdf"));
  driver.setRenderer(org.apache.fop.apps.Driver.RENDER_PDF);
  transformer.transform(xmlSource,new 
javax.xml.transform.sax.SAXResult(driver.getContentHandler()));
}
catch( Exception e ) 
{
  e.printStackTrace(System.out);
}
  }
}

The following code also worked:

import java.io.*;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
import org.apache.fop.apps.Driver;
import org.apache.fop.apps.Version;
import org.apache.fop.apps.*;
import org.apache.log.*;

public class EmbeddingFOP_2 
{
public static void main(String[] args) throws Exception 
{
File fxml=new File("D:\\glossary.xml");
File fxsl=new File("D:\\glossary.xsl");
File fpdf=new File("D:\\glossary.pdf");

Logger log;
Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
log = hierarchy.getLoggerFor("fop");
log.setPriority(Priority.WARN);

Driver dr=new Driver();
dr.setLogger(log);
dr.setRenderer(Driver.RENDER_PDF);
InputHandler ih=new XSLTInputHandler(fxml,fxsl);
XMLReader p=ih.getParser();
dr.setOutputStream(new FileOutputStream(fpdf));
dr.render(p,ih.getInputSource());
}
}



Thanks to all for the help,
Marianne and Viktor.



problem with text inside a block

2002-04-12 Thread Guillaume Patin



Is there a way to avoid fop from generating a pixel 
height line above and below your text in a block ?
 
I have a block whith a white background-color, and 
this block does not have the same height with or without text...
 
Guillaume Patin03 28 76 29 32[EMAIL PROTECTED]


RE: z-index status

2002-04-12 Thread Jesper Thorhauge (JTH)









Hi Arved

 

Thanks!

 

I’ll
might look into adding some kind of sorting to the fo-tree. Actually, what i
did in the project i’m working on was exactly the same J Before converting my HTML-layers
into fo:block-container, i performed a merge sort on the array holding the
layers to be written. Writing the fo:block-containers in “z-index order”
then produces the desired result. Anyway, i think i might look into adding the
z-index feature to FOP, as i don’t like my own workaround ..

Also,
why is it that the z-index property isn’t also a property on the
fo:block-container, but only on fo:block?

 

Regards

Jesper

 

-Original
Message-
From: Arved Sandstrom
[mailto:[EMAIL PROTECTED] 
Sent: 12. april 2002 01:52
To: [EMAIL PROTECTED]
Subject: RE: z-index status

 



Well,
here are some thoughts. As no doubt you have already gathered from Section
4.9.6 of the spec and also 5.4.5 most of the work is in the renderer. Take
into account that areas presented to the renderer are in a hierarchical
structure, _and_ also that areas can be relatively positioned or might be
fixed. It sure looks to me at first glance like z-index may require two passes,
with actual rendering occurring on the second pass, and the first pass being
used to create a different area hierarchy, ordered by stacking layer, with
positional calculations already carried out.





 





This is
the hard part and I don't think it will be exactly trivial but it should be
fun.





 





Inspection
of the code should inform you readily as to how the property is made known to
FOP and how you would ensure that





 





1)
inheritance according to 5.4.5 happens properly; and





 





2) a
z-index property on FO x is placed on generated areas as a trait of the same
name, so that it is available to the renderer.





 





Any
further questions and we'll be happy to help.





 





Regards,





Arved
Sandstrom





-Original Message-
From: Jesper Thorhauge (JTH)
[mailto:[EMAIL PROTECTED]
Sent: April 10, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: z-index status

Hi

 

I
can see that z-index haven’t been implemented yet...i’ve read other
posts where people had the same problem as me, namely converting HTML stuff
(layers etc.) with z-index into PDF. Also, if anyone can guide me into the task
of implementing z-index, i would be glad to help ..! I would hate to do some
nasty workarounds in my application, re-arranging block-container’s etc.
etc

 

Med venlig hilsen / Best
regards,

 

Zenaria as

 

Jesper Thorhauge

Programmer

 

Aalborg

Niels Jernes Vej 14

DK-9220 Aalborg E

Denmark

 

P:  +45 70 133 900

D: +45 49 148 775

F:  +45 70 133 901

E: [EMAIL PROTECTED]

 

 

*Internet
Email Confidentiality Footer**



Privileged/Confidential Information
may be contained in this message.  If you are



not the addressee indicated in this
message (or responsible for delivery of the

message to such person), you may not
copy or deliver this message to anyone. In

such case, you should destroy this
message and kindly notify the sender by reply

email. Please advise immediately if
you or your employer does not consent to

Internet email for messages of this
kind.  Opinions, conclusions and other

information in this message that do
not relate to the official business of my firm

shall be understood as neither given
nor endorsed by it.

 










RE: print dialog

2002-04-12 Thread TSchutzerWeissmann
Henrik wrote:

>at the moment i am printing directly from my application using fop
>printrenderer, but now i need a printdialog
>to select a specific printer ? i looked at PreviewDialog.java, but without
>any idea howto solve my problem?

When printing off the command-line, Fop looks for a java system property
called "dialog", and if it's there it will pop up the AWT Print Dialogue
that lets you choose printer. 
Just adapt either fop.bat or fop.sh so that java is invoked with this
option: -Ddialog=true.

If you've embedded FOP then it's a bit more complicated but a look at
PrintStarter.java might be useful.

Regards,
Tom Schutz


Réf. : RE: print dialo

2002-04-12 Thread paudigier

Hey,
I want to use fop to generate a PDF document from an XML document with
JAVA.
Which class must i use???


Regards

Pierre AUDIGIER





Re: Réf. : RE: print dialo

2002-04-12 Thread MagnusSjöberg
[EMAIL PROTECTED] wrote:
> 
> Hey,
> I want to use fop to generate a PDF document from an XML document with
> JAVA.
> Which class must i use???
> 
> Regards
> 
> Pierre AUDIGIER

First, do n o t answer a previous question with a new one.
I'v seen this behaviour twice in short time on this list and
it is not good netiquette.

In answer to your question, begin by looking at
xml.apache.org/fop/embedding.html
It requires that you familiarize yourself with stuff like
XSL, XSL-FO and such.

Basically you have an XSL document which is used to
transform your XML into XSL-FO which in turn gets converted
into PDF by FOP.
Just reading through the pages at xml.apache.org/fop will
help you a lot.

hth///

Magnus


Réf. : Re: Réf. : RE: print dialo

2002-04-12 Thread paudigier

Sorry for my error
Thank you for your help.

Regards.
Pierre AUDIGIER



 
MagnusSjöberg   
 
<[EMAIL PROTECTED]Pour :  [EMAIL PROTECTED] 

ecode.com>   cc :   
 
Envoyé par : Objet :  Re: Réf. : RE: print 
dialo 
[EMAIL PROTECTED]   
 

 

 
12/04/02 12:01  
 
Veuillez répondre   
 
à fop-user  
 

 

 




[EMAIL PROTECTED] wrote:
>
> Hey,
> I want to use fop to generate a PDF document from an XML document with
> JAVA.
> Which class must i use???
>
> Regards
>
> Pierre AUDIGIER

First, do n o t answer a previous question with a new one.
I'v seen this behaviour twice in short time on this list and
it is not good netiquette.

In answer to your question, begin by looking at
xml.apache.org/fop/embedding.html
It requires that you familiarize yourself with stuff like
XSL, XSL-FO and such.

Basically you have an XSL document which is used to
transform your XML into XSL-FO which in turn gets converted
into PDF by FOP.
Just reading through the pages at xml.apache.org/fop will
help you a lot.

hth///

Magnus






Re: Help! Problem with Fop in Tomcat

2002-04-12 Thread Marina Pérel
Hello Jeremias,

Thanks for your help, but I finally found the problem : you must unjar the
avalon-framework-4.1.2's jar and the
batik-1.1.1's jar. I take a lot of time to find that because there isn't
this information in fop's doc or in mailing list. It's curious, no?
You don't have to unjar the avalon-framework-4.1.1'sjar.
Greetings
Marina

- Original Message -
From: "Jeremias Maerki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 12:07 PM
Subject: Re: Help! Problem with Fop in Tomcat


> > I developped a Fop service via a service web (with Apache SOAP) in
Windows Nt : it works good.
> > But, now i'm trying to set the Fop Service in Linux machine (RedHat7.2).
> > I have this error :
> > Genarated fault :
> >Fault Code = SOAP-ENV:Server
> > Fault String = Exception from service object :
> > org/apache/avalon/framework/loggable/Loggable
>
> That should be org/apache/avalon/framework/logger/Loggable. Did you
> write that by hand or using copy/paste?
>
> Loggable is in avalon-framework(-4.1.2).jar.
>
> >  A Hello's service works, so my web service is fine and it's a Fop
problem.
> > My Tomcat's classpath is :
> >
/tools/beluga/SOAP/xerces-1_2_3/xerces.jar:/tools/beluga/SOAP/jakarta-tomcat
-4.0.3/lib/xalan.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/avalon-fram
ework-4.1.2.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/logkit-1.0.1.jar
:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/batik.jar:/tools/beluga/SOAP/ja
karta-tomcat-4.0.3/lib/fop.jar:/tools/beluga/SOAP/soap-2_2/lib/soap.jar:/too
ls/beluga/SOAP/javamail-1.2/mail.jar:/tools/beluga/SOAP/jaf-1.0.1/activation
.jar:.:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/webapps/soap/WEB-INF/classes/
:/usr/java/j2sdk1.4.0/lib/tools.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/
bin/bootstrap.jar
> > (my .jar files are in the Tomcat lib directory)
> >
> > My code for the logger :
> > Logger log = null;
> >   if(log == null) {
> > Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
> > log = hierarchy.getLoggerFor("fop");
> > log.setPriority(Priority.WARN);
> >   }
> >driver.setLogger(log);
> >
> > Does anybody know what's wrong? All ideas are welcome!
>
> Avalon Framework and LogKit seem to be present in Tomcat's classpath. So
> nothing wrong here. Did you check that the files with the names
> specified in the classpath really exist?
>
> Anyway, FOP was recently changed to use
> org.apache.avalon.framework.logger.Logger (Avalon Logger Interface)
> instead of org.apache.log.Logger (LogKit). Loggable is used with LogKit.
> It has been deprecated in favor of
> org.apache.avalon.framework.logger.LogEnabled (which uses the Avalon
> Logger Interface). Maybe that helps finding a solution.
>
> 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



Help! Code presentation

2002-04-12 Thread Michal Kwiatek
Hi there!

I need to include several pages of xml source code in my pdf document. I
want to use code indented by XML Spy. That is to say, my text contains
end-of-line and space characters which fop should preserve. I enclosed the
source code in   markup. Although spaces are preserved,
end-of-lines dissapear. Is there a way to make fop preserve them? Or any
other way to present intended source code using fop?

Thanks in advance,
Michal Kwiatek



Re: Help! Code presentation

2002-04-12 Thread Stephan Wiesner
Yep, there is. I had the same problem, here is my solution:

  

  Code: 
  

  



- Original Message -
From: "Michal Kwiatek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 2:31 PM
Subject: Help! Code presentation


> Hi there!
>
> I need to include several pages of xml source code in my pdf document. I
> want to use code indented by XML Spy. That is to say, my text contains
> end-of-line and space characters which fop should preserve. I enclosed the
> source code in   markup. Although spaces are preserved,
> end-of-lines dissapear. Is there a way to make fop preserve them? Or any
> other way to present intended source code using fop?
>
> Thanks in advance,
> Michal Kwiatek



column problem

2002-04-12 Thread Stefan Arn
hi to all

The PDF i want to create have 2 columns and a title over the columns(both in
region-body).Just a Header and after that a text in 2 columns..

In my layout-master-set I defined my region-body like this:


Re: column problem

2002-04-12 Thread Chuck Paussa
Stefan,
use 
Chuck Paussa
Stefan Arn wrote:
hi to all
The PDF i want to create have 2 columns and a title over the columns(both in
region-body).Just a Header and after that a text in 2 columns..
In my layout-master-set I defined my region-body like this:
Now i have my columns but what must I do, that the title isn't in the
column?
thanks a lot






Re: Help! Problem with Fop in Tomcat

2002-04-12 Thread Jeremias Maerki
Hello Marina

That's weird. It should never be necessary to unjar these jar to make
them work. Looking a bit closer at your case I have a few comments:
- You seem to edit Tomcat's classpath to include all jars you need. It's
  better if you placed all jars needed by your SOAP service in the
  WEB-INF/lib directory. That way they are packed together with your
  webapp/soap-service and loaded automatically without adjusting
  Tomcat's classpath. The jars I'd put there, are: avalon-framework,
  logkit, fop, batik, soap, mail and activation. xerces is needed by
  Tomcat and I've had troubles putting xalan.jar in WEB-INF/lib because
  of the way JAXP works, so leave them there.
- In you last mail you mentioned a batik-1.1.1.jar. If I'm right FOP
  needs a specially built batik.jar (included in the distribution), so
  you might run into problems if you use an official release. Keiron,
  please correct me if I'm wrong.
- I've done similar stuff to what you're doing, and I could do without
  any special work-arounds. On Windows and Linux.
- Think about making a WAR file from your web service. That way, it's
  much simpler to deploy. Without manual classpath surgery.
- I propose you install a fresh Tomcat to another location and start
  over with the hints I gave you. It may well work what you've done, but
  it's a hell to maintain.
- I guess you're using Tomcat 3.x. Try 4.0.x. I like it a lot better.
- Maybe have a look at the current CVS version of FOP. In the contrib
  directory, there's the sources of the FopServlet. The build creates a
  WAR file. It's quite similar to what you're doing. Apache SOAP is a
  servlet, too, right?

Good luck!

On 12.04.2002 15:13:24 Marina Pérel wrote:
> Hello Jeremias,
> 
> Thanks for your help, but I finally found the problem : you must unjar the
> avalon-framework-4.1.2's jar and the
> batik-1.1.1's jar. I take a lot of time to find that because there isn't
> this information in fop's doc or in mailing list. It's curious, no?
> You don't have to unjar the avalon-framework-4.1.1'sjar.
> Greetings
> Marina
> 
> - Original Message -
> From: "Jeremias Maerki" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 11, 2002 12:07 PM
> Subject: Re: Help! Problem with Fop in Tomcat
> 
> 
> > > I developped a Fop service via a service web (with Apache SOAP) in
> Windows Nt : it works good.
> > > But, now i'm trying to set the Fop Service in Linux machine (RedHat7.2).
> > > I have this error :
> > > Genarated fault :
> > >Fault Code = SOAP-ENV:Server
> > > Fault String = Exception from service object :
> > > org/apache/avalon/framework/loggable/Loggable
> >
> > That should be org/apache/avalon/framework/logger/Loggable. Did you
> > write that by hand or using copy/paste?
> >
> > Loggable is in avalon-framework(-4.1.2).jar.
> >
> > >  A Hello's service works, so my web service is fine and it's a Fop
> problem.
> > > My Tomcat's classpath is :
> > >
> /tools/beluga/SOAP/xerces-1_2_3/xerces.jar:/tools/beluga/SOAP/jakarta-tomcat
> -4.0.3/lib/xalan.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/avalon-fram
> ework-4.1.2.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/logkit-1.0.1.jar
> :/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/batik.jar:/tools/beluga/SOAP/ja
> karta-tomcat-4.0.3/lib/fop.jar:/tools/beluga/SOAP/soap-2_2/lib/soap.jar:/too
> ls/beluga/SOAP/javamail-1.2/mail.jar:/tools/beluga/SOAP/jaf-1.0.1/activation
> .jar:.:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/webapps/soap/WEB-INF/classes/
> :/usr/java/j2sdk1.4.0/lib/tools.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/
> bin/bootstrap.jar
> > > (my .jar files are in the Tomcat lib directory)
> > >
> > > My code for the logger :
> > > Logger log = null;
> > >   if(log == null) {
> > > Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
> > > log = hierarchy.getLoggerFor("fop");
> > > log.setPriority(Priority.WARN);
> > >   }
> > >driver.setLogger(log);
> > >
> > > Does anybody know what's wrong? All ideas are welcome!
> >
> > Avalon Framework and LogKit seem to be present in Tomcat's classpath. So
> > nothing wrong here. Did you check that the files with the names
> > specified in the classpath really exist?
> >
> > Anyway, FOP was recently changed to use
> > org.apache.avalon.framework.logger.Logger (Avalon Logger Interface)
> > instead of org.apache.log.Logger (LogKit). Loggable is used with LogKit.
> > It has been deprecated in favor of
> > org.apache.avalon.framework.logger.LogEnabled (which uses the Avalon
> > Logger Interface). Maybe that helps finding a solution.
> >
> > 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



Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - 6002 Luzern
Fon +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.out

Variables

2002-04-12 Thread Norr, Peter
What is the best way to set variables in stylesheets?

For example, instead of constantly specifying the color for fo:block with a
hex value, I would like to set a variable once and then reference it in all
included/imported stylesheets.

i.e. 





--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.




Re: Variables

2002-04-12 Thread Chuck Paussa
Peter,
Set the variable at the top of the stylesheet before any of your 
templates are defined. This makes the variable global.

Chuck Paussa
Norr, Peter wrote:
What is the best way to set variables in stylesheets?
For example, instead of constantly specifying the color for fo:block with a
hex value, I would like to set a variable once and then reference it in all
included/imported stylesheets.
i.e. 


--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.





RE: Variables

2002-04-12 Thread Michal Kwiatek
You have to declare it by using something like:




Michal Kwiatek

---
BiznesPartner.pl SA
ul. Mlynarska 48
01-171 Warszawa
tel. 5355560



> -Original Message-
> From: Norr, Peter [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 12, 2002 7:20 PM
> To: '[EMAIL PROTECTED]'
> Subject: Variables
> 
> 
> What is the best way to set variables in stylesheets?
> 
> For example, instead of constantly specifying the color for 
> fo:block with a
> hex value, I would like to set a variable once and then reference 
> it in all
> included/imported stylesheets.
> 
> i.e. 
> 
> 
> 
> 
> 
> --
> 
> This message is intended only for the personal and confidential 
> use of the designated recipient(s) named above.  If you are not 
> the intended recipient of this message you are hereby notified 
> that any review, dissemination, distribution or copying of this 
> message is strictly prohibited.  This communication is for 
> information purposes only and should not be regarded as an offer 
> to sell or as a solicitation of an offer to buy any financial 
> product, an official confirmation of any transaction, or as an 
> official statement of Lehman Brothers.  Email transmission cannot 
> be guaranteed to be secure or error-free.  Therefore, we do not 
> represent that this information is complete or accurate and it 
> should not be relied upon as such.  All information is subject to 
> change without notice.
> 
> 


RE: Variables

2002-04-12 Thread Norr, Peter
what about something like this?

#003399

-Original Message-
From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
Sent: Friday, April 12, 2002 1:31 PM
To: [EMAIL PROTECTED]
Subject: RE: Variables


You have to declare it by using something like:




Michal Kwiatek

---
BiznesPartner.pl SA
ul. Mlynarska 48
01-171 Warszawa
tel. 5355560



> -Original Message-
> From: Norr, Peter [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 12, 2002 7:20 PM
> To: '[EMAIL PROTECTED]'
> Subject: Variables
>
>
> What is the best way to set variables in stylesheets?
>
> For example, instead of constantly specifying the color for
> fo:block with a
> hex value, I would like to set a variable once and then reference
> it in all
> included/imported stylesheets.
>
> i.e. 
>
>
>
>
>
> --
> 
> This message is intended only for the personal and confidential
> use of the designated recipient(s) named above.  If you are not
> the intended recipient of this message you are hereby notified
> that any review, dissemination, distribution or copying of this
> message is strictly prohibited.  This communication is for
> information purposes only and should not be regarded as an offer
> to sell or as a solicitation of an offer to buy any financial
> product, an official confirmation of any transaction, or as an
> official statement of Lehman Brothers.  Email transmission cannot
> be guaranteed to be secure or error-free.  Therefore, we do not
> represent that this information is complete or accurate and it
> should not be relied upon as such.  All information is subject to
> change without notice.
>
>


--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.




RE: Variables

2002-04-12 Thread Michal Kwiatek
It's just as good for you. If you want to know the difference, have a look
at xslt specs at http://www.w3.org/TR/1999/REC-xslt-19991116

Michal Kwiatek

---
BiznesPartner.pl SA
ul. Mlynarska 48
01-171 Warszawa
tel. 5355560



> -Original Message-
> From: Norr, Peter [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 12, 2002 7:31 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Variables
>
>
> what about something like this?
>
> #003399
>
> -Original Message-
> From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 12, 2002 1:31 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Variables
>
>
> You have to declare it by using something like:
>
> 
>
>
> Michal Kwiatek
>
> ---
> BiznesPartner.pl SA
> ul. Mlynarska 48
> 01-171 Warszawa
> tel. 5355560
>
>
>
> > -Original Message-
> > From: Norr, Peter [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 12, 2002 7:20 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Variables
> >
> >
> > What is the best way to set variables in stylesheets?
> >
> > For example, instead of constantly specifying the color for
> > fo:block with a
> > hex value, I would like to set a variable once and then reference
> > it in all
> > included/imported stylesheets.
> >
> > i.e. 
> >
> >
> >
> >
> >
> > --
> > 
> > This message is intended only for the personal and confidential
> > use of the designated recipient(s) named above.  If you are not
> > the intended recipient of this message you are hereby notified
> > that any review, dissemination, distribution or copying of this
> > message is strictly prohibited.  This communication is for
> > information purposes only and should not be regarded as an offer
> > to sell or as a solicitation of an offer to buy any financial
> > product, an official confirmation of any transaction, or as an
> > official statement of Lehman Brothers.  Email transmission cannot
> > be guaranteed to be secure or error-free.  Therefore, we do not
> > represent that this information is complete or accurate and it
> > should not be relied upon as such.  All information is subject to
> > change without notice.
> >
> >
>
>
> --
> 
> This message is intended only for the personal and confidential
> use of the designated recipient(s) named above.  If you are not
> the intended recipient of this message you are hereby notified
> that any review, dissemination, distribution or copying of this
> message is strictly prohibited.  This communication is for
> information purposes only and should not be regarded as an offer
> to sell or as a solicitation of an offer to buy any financial
> product, an official confirmation of any transaction, or as an
> official statement of Lehman Brothers.  Email transmission cannot
> be guaranteed to be secure or error-free.  Therefore, we do not
> represent that this information is complete or accurate and it
> should not be relied upon as such.  All information is subject to
> change without notice.
>
>



bookmark

2002-04-12 Thread Fischer Tibor
Hello,
How can i put entries into the bookmark of the pdf??
Thanks
BR,
Fishy



RE: Help! Problem with Fop in Tomcat

2002-04-12 Thread Cox, Charlie
from the classpath below, it looks as if you  are using tomcat 4.0.3. there
is a known bug in tomcat 4.0.3 where jar files in the \\WEB-INF\lib
are not loaded. If your libs are in \tomcat\lib or tomcat\shared\lib they
should be fine.

Charlie

> -Original Message-
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 12, 2002 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Help! Problem with Fop in Tomcat
> 
> 
> Hello Marina
> 
> That's weird. It should never be necessary to unjar these jar to make
> them work. Looking a bit closer at your case I have a few comments:
> - You seem to edit Tomcat's classpath to include all jars you 
> need. It's
>   better if you placed all jars needed by your SOAP service in the
>   WEB-INF/lib directory. That way they are packed together with your
>   webapp/soap-service and loaded automatically without adjusting
>   Tomcat's classpath. The jars I'd put there, are: avalon-framework,
>   logkit, fop, batik, soap, mail and activation. xerces is needed by
>   Tomcat and I've had troubles putting xalan.jar in 
> WEB-INF/lib because
>   of the way JAXP works, so leave them there.
> - In you last mail you mentioned a batik-1.1.1.jar. If I'm right FOP
>   needs a specially built batik.jar (included in the distribution), so
>   you might run into problems if you use an official release. Keiron,
>   please correct me if I'm wrong.
> - I've done similar stuff to what you're doing, and I could do without
>   any special work-arounds. On Windows and Linux.
> - Think about making a WAR file from your web service. That way, it's
>   much simpler to deploy. Without manual classpath surgery.
> - I propose you install a fresh Tomcat to another location and start
>   over with the hints I gave you. It may well work what 
> you've done, but
>   it's a hell to maintain.
> - I guess you're using Tomcat 3.x. Try 4.0.x. I like it a lot better.
> - Maybe have a look at the current CVS version of FOP. In the contrib
>   directory, there's the sources of the FopServlet. The build 
> creates a
>   WAR file. It's quite similar to what you're doing. Apache SOAP is a
>   servlet, too, right?
> 
> Good luck!
> 
> On 12.04.2002 15:13:24 Marina Pérel wrote:
> > Hello Jeremias,
> > 
> > Thanks for your help, but I finally found the problem : you 
> must unjar the
> > avalon-framework-4.1.2's jar and the
> > batik-1.1.1's jar. I take a lot of time to find that 
> because there isn't
> > this information in fop's doc or in mailing list. It's curious, no?
> > You don't have to unjar the avalon-framework-4.1.1'sjar.
> > Greetings
> > Marina
> > 
> > - Original Message -
> > From: "Jeremias Maerki" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, April 11, 2002 12:07 PM
> > Subject: Re: Help! Problem with Fop in Tomcat
> > 
> > 
> > > > I developped a Fop service via a service web (with 
> Apache SOAP) in
> > Windows Nt : it works good.
> > > > But, now i'm trying to set the Fop Service in Linux 
> machine (RedHat7.2).
> > > > I have this error :
> > > > Genarated fault :
> > > >Fault Code = SOAP-ENV:Server
> > > > Fault String = Exception from service object :
> > > > org/apache/avalon/framework/loggable/Loggable
> > >
> > > That should be 
> org/apache/avalon/framework/logger/Loggable. Did you
> > > write that by hand or using copy/paste?
> > >
> > > Loggable is in avalon-framework(-4.1.2).jar.
> > >
> > > >  A Hello's service works, so my web service is fine and 
> it's a Fop
> > problem.
> > > > My Tomcat's classpath is :
> > > >
> > 
> /tools/beluga/SOAP/xerces-1_2_3/xerces.jar:/tools/beluga/SOAP/
> jakarta-tomcat
> > 
> -4.0.3/lib/xalan.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/l
> ib/avalon-fram
> > 
> ework-4.1.2.jar:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/lo
> gkit-1.0.1.jar
> > 
> :/tools/beluga/SOAP/jakarta-tomcat-4.0.3/lib/batik.jar:/tools/
> beluga/SOAP/ja
> > 
> karta-tomcat-4.0.3/lib/fop.jar:/tools/beluga/SOAP/soap-2_2/lib
> /soap.jar:/too
> > 
> ls/beluga/SOAP/javamail-1.2/mail.jar:/tools/beluga/SOAP/jaf-1.
> 0.1/activation
> > 
> .jar:.:/tools/beluga/SOAP/jakarta-tomcat-4.0.3/webapps/soap/WE
> B-INF/classes/
> > 
> :/usr/java/j2sdk1.4.0/lib/tools.jar:/tools/beluga/SOAP/jakarta
> -tomcat-4.0.3/
> > bin/bootstrap.jar
> > > > (my .jar files are in the Tomcat lib directory)
> > > >
> > > > My code for the logger :
> > > > Logger log = null;
> > > >   if(log == null) {
> > > > Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
> > > > log = hierarchy.getLoggerFor("fop");
> > > > log.setPriority(Priority.WARN);
> > > >   }
> > > >driver.setLogger(log);
> > > >
> > > > Does anybody know what's wrong? All ideas are welcome!
> > >
> > > Avalon Framework and LogKit seem to be present in 
> Tomcat's classpath. So
> > > nothing wrong here. Did you check that the files with the names
> > > specified in the classpath really exist?
> > >
> > > Anyway, FOP was recently changed to use
> > > or

Re: bookmark

2002-04-12 Thread Joe Sytniak

  
   

   
 
 

 

   
   

 

  

 


 

  

 


 
 

   
  
 

 
  
   
   
   
   

 
  PROJECT:


 
 
  STUFF
 
 
  Initials:_
 


 
  REVISION:  
 
 
  Status:
DRAFT
 
 
  Date:__
 

   
  
 

 
  
   
   
   
   

 
  My Company
Inc. 
 
 
  Confidential
 
 
  Page  of

 

   
  
 

 
   

 

   
 


 
.
.
.
.
.
 
.
.
.
.
.


- Original Message -
From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 1:47 PM
Subject: bookmark


> Hello,
>
> How can i put entries into the bookmark of the pdf??
>
> Thanks
>
> BR,
> Fishy
>
>



RE: SVG rendering in release 0.20.3

2002-04-12 Thread Matthew L. Avizinis
Nope, but thanks for the suggestions.
Has to be something else.
I know nothing about the insides of Batik, but this is the cause of the
problem.  I put the batik.jar from 0.20.2 in place of the current one, and
there you go, it works again.


> -Original Message-
> From: Keiron Liddle [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 12, 2002 2:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: SVG rendering in release 0.20.3
>
>
>
> I suspect this is a base url problem.
> Are you embedding?, is the base directory set?
> Is your URL correct?
>
> On 2002.04.12 03:39 Matthew L. Avizinis wrote:
> > Hello all,
> >
> > This used to work in version 0.20.2 and 0.20.3rc
> >
> > 
> >   http://www.w3.org/2000/svg";
> > width="{concat(@width,'mm')}" height="{concat(@height,'mm')}"
> > xml:space="preserve">
> >  
> > > height="{concat(@height,'mm')}"/>
> >  
> >   > x="0" y="0" width="{concat(@width,'mm')}"
> > height="{concat(@height,'mm')}"/>
> >   
> > 
> >
> > It doesn't now in the last 0.20.3.  What happens is the box with the
> > border
> > is drawn but the image is replaced by a broken svg picture.
> There are no
> > error messages.  Is there some change between versions that I have to
> > change
> > the above code or is there a change in classpaths or something else.  I
> > don't see anything mentioned in the CHANGES file.