Problem with embedding fop

2001-07-06 Thread adel ben

Hi all,
I've tryed to embed FOP-0.18.1DEV with a servlet so that to render (xml,xsl)
files into PDF. I am using Tomcat 3.2.1 as web container. 

Unfortunately, the call of the servlet works from Netscape Navigator 
and renders PDF. However, it doesn't work from Internet Explorer. in fact
with IE, the process ends with a black page in the browser despite the well
processing in Tomcat console ( all debuging info which are displayed with
the netscape call are displayed too with IE call)

you will find attached the servlet code, the xml, xsl file and the html file
which allow to call the servlet.


please help,
Sincerly, adel





___
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/


 PDFGeneratorServlet.java
Title: Afficher PDF

 
 
 
  This is my first page
  To vew PDF, 
  try this link
  	
 


http://www.w3.org/1999/XSL/Transform";
  xmlns:fo="http://www.w3.org/1999/XSL/Format";>










  








	










type="text/xslfo"





http://www.w3.org/1999/XSL/Format";>






  







  

  







  

  












 

  		
 
  

   
  








 Hello
 
  This is my first page!
 



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


Font Metric file from ttf file??

2001-07-06 Thread rajeev nair

hello
i have the ttf file and was trying to make fontmetric 
file using TTFReader class which is in fop.jar file.I
was trying with 

java -cp fop.jar java
org.apache.fop.fonts.apps.TTFReader
C:\fonts\SHIVN___.ttf C:\fonts\SHIVN___.ttf shiva.xml

but error no class found is obtaining.But i can see
the
TTFReader class in fop.jar.what is happening wrong
with me.
help expected.
regards
rajiv

--- Jeremias Maerki <[EMAIL PROTECTED]>
wrote:
> > how can i generate font metric file from pfb fies
> > which comes with font files.I don't have pfm
> files.I
> > read that The PFMReader tool does not yet
> interpret
> > PFB files.Please help me.
> 
> The PFM is currently the only way. If you have a PFA
> (which is in a text
> format) you can quite easily construct the XML font
> metric file by hand
> if you bother to consult the Adobe manuals for
> Postscript Type 1 fonts.
> But with only a PFB you won't have much luck, I
> guess. Try to get hold
> of the corresponding PFM.
> 
> 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: running from servlet, is buffering needed?

2001-07-06 Thread James Telfer

FWIW, in my opinion the overriding concern is that Fop should be able to run
in a multi-threaded environment. As such, considering that this is a core
feature, this should be fixed.

Thanks,
JT

-Original Message-
From: Seshadri G.K. [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 07, 2001 3:55 PM
To: [EMAIL PROTECTED]
Subject: running from servlet, is buffering needed?


I want to know is the memory patch really needed when fop runs from a
servelet. Iam sure when it is servelet invoked, the xsl-fo files are much
smaller, because some user is waiting to see the files on the browser,
unlike commandline where really big files could be used. If that is so, then
I could commit the memory patch to fop.

seshadri



-
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: Problem with embedding fop

2001-07-06 Thread Bjoern Martin

> Hi all,
> I've tryed to embed FOP-0.18.1DEV with a servlet so that to render
> (xml,xsl) files into PDF. I am using Tomcat 3.2.1 as web container.
>
> Unfortunately, the call of the servlet works from Netscape Navigator
> and renders PDF. However, it doesn't work from Internet Explorer.
> in fact with IE, the process ends with a black page in the browser
> despite the well processing in Tomcat console ( all debuging info
> which are displayed with the netscape call are displayed too with IE
> call)

You may want to add the suffix 'pdf' to your servlet url pattern 
within the 'web.xml' for your context, e.g.

/pdf_out.pdf

I did this for my XML output to make IE display my XML files properly.
It seems IE is not very interested in the content type you set :(

Regards.

--
Bjoern Martin[EMAIL PROTECTED]



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




Re:RE: XSLTInputHandler not doing its job??

2001-07-06 Thread Wolf Gustavo (SGC-EXT)

Hello Karen and the others,
   the truth is that I had initially tried to
use 
XMLReader parser = inputHandler.getParser();
at the beginning, and it gave me the following error:

javax.xml.transform.TransformerConfigurationException: Namespace not
supported by SAXParser.

Then Keiron Liddle suggested me to introduce the parser in a different
manner, which was what I used. It may have made the second problem appear
when I call the builFOTree:

WARNING: Unknown formatting object ^PERIODIC_TABLE
FOPException: org.xml.sax.SAXException (msg: null)"

since as you explained 

InputSource inputSource = inputHandler.getInputSource();

seems to be bringing back the original XML, and not as I thought the .fo
file.

So, back to square zero:

How can I solve the problem of  XMLReader parser = inputHandler.getParser();
??

I attach the xml and xsl files just in case.

Thanks a lot once more,
   Gustavo




-Message d'origine-
De : Karen Lease [mailto:[EMAIL PROTECTED]]
Envoye : jeudi, 5. juillet 2001 22:56
A : [EMAIL PROTECTED]
Objet : Re: XSLTInputHandler not doing its job??


Hi Gustavo,

I'm not 100% sure, but it looks to me as if you get the parser from the
inputHandler instead of using newInstance, it will work. That's what FOP
does when you pass it the xml and xsl in the command line.

InputHandler inputHandler = new
XSLTInputHandler(xmlInputSource,xslInputSource);
XMLReader parser = inputHandler.getParser();
InputSource inputSource = inputHandler.getInputSource();

Then pass that to the driver.

What is happening is that the inputSource you're getting back now is
just returning your original XML file. When you call getParser() on the
XSLTInputHandler, it's actually going to "parse" the FO file which
results from transforming your xml with the xsl.

Hope that helps,
Karen Lease


"Wolf Gustavo (SGC-EXT)" wrote:
> 
> Hi,
>   as I said a few hours ago, I have the following code:
> 
> InputHandler inputHandler = new
> XSLTInputHandler(xmlInputSource,xslInputSource);
> InputSource inputSource = inputHandler.getInputSource();
> XMLReader  parser = (XMLReader)
> Class.forName(this.parserClass).newInstance();
> 
> parser.setFeature("http://xml.org/sax/features/namespace-prefixes",true);
> /**
> * Creates the driver telling it to write the output to a file.
> */
> Driver driver = new Driver();
> driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer");
> //  ERROR IN THE FOLLOWING LINE
> driver.buildFOTree(parser, inputSource);
> File test = new File("test.pdf");
> driver.setOutputStream(new java.io.FileOutputStream(test));
> driver.format();
> driver.render();
> 
> In the second line, InputSource inputSource is suppossed to be the .fo
file
> after the processing of xmlInputSource by xslInputSource.
> 
> I am using as xmlInputSource and xslInputSource two files that I took from
> the chap 15 of the XMLbible (attached).
> 
> Now, when the program tries to execute "driver.buildFOTree(parser,
> inputSource);", I get the following msg and Exception:
> 
> "building formatting object tree
>  WARNING: Unknown formatting object ^PERIODIC_TABLE
>  FOPException: org.xml.sax.SAXException (msg: null)"
> 
> It seems to me that XSLTInputHandler is not doing its job properly,
because
> of the WARNING.
> 
> Again, if I run a line command with
> Fop -xml xmlInputSource -xsl xslInputSource -pdf test.pdf
> everything is OK, which tells me that there shouldn't be a problem with
the
> input files.
> 
> Does anyone knows how to cure this?
> 
> Thanks a lot,
> Gustavo
> 
>  <>  <>
> 
>   
>  Name: prueba.xml
>prueba.xmlType: unspecified type (application/octet-stream)
>  Encoding: quoted-printable
> 
>prueba.xslName: prueba.xsl
>  Type: unspecified type (application/octet-stream)
> 
>   
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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



 prueba.xml
 prueba.xsl

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


RE: XSLTInputHandler not doing its job??

2001-07-06 Thread Wolf Gustavo (SGC-EXT)
Title: RE: XSLTInputHandler not doing its job??



James,
   
I am sorry but I don't understand your answer. Do you mean that writing the word 
periodic in the !DOCTYPE is wrong? As far as I see in examples it is not (cf: www.xml101.com/dtd/dtd_intro.asp 
).
 
Anyway, as a line command Fop gives the same answer with or without the 
DTD within the XML file, so I still have that problem.
 
If I 
did not get the point at all, would you please mind explaining me 
again?
 
Thanks 
a lot,
 
Gustavo

  -Message d'origine-De : Williamson, James 
  [mailto:[EMAIL PROTECTED]]Envoyé : jeudi, 5. 
  juillet 2001 18:15À : 
  '[EMAIL PROTECTED]'Objet : RE: XSLTInputHandler not doing 
  its job??
  Wolf, 
  That's not valid XML, when it says view source for full 
  doctype it doesn't expect you to take that literally. DOCTYPE's generally take these form: 
   
  or 
   
  or (embedded) 
   
      your embedded 
  DTD ]> 
  I'm no FOP expert but I'm sure I remember being able to 
  configure FOP to tolerate XML (i.e. HTML) perhaps you could have a look at the 
  source code for the FOP app.
  Regards, 
  James 
  -Original Message- From: Wolf 
  Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]] 
  Sent: 05 July 2001 16:50 To: Fop 
  (E-mail) Subject: XSLTInputHandler not doing its 
  job?? 
  Hi,   as 
  I said a few hours ago, I have the following code: 
      InputHandler 
  inputHandler = new XSLTInputHandler(xmlInputSource,xslInputSource);     InputSource inputSource = 
  inputHandler.getInputSource();     XMLReader  parser = 
  (XMLReader) Class.forName(this.parserClass).newInstance();   parser.setFeature("http://xml.org/sax/features/namespace-prefixes",true); 
  /** * Creates the driver telling it 
  to write the output to a file. */     Driver driver = new 
  Driver();     
  driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer"); //  ERROR IN THE FOLLOWING LINE     driver.buildFOTree(parser, 
  inputSource);     File test = new 
  File("test.pdf");     driver.setOutputStream(new 
  java.io.FileOutputStream(test));     driver.format(); 
      
  driver.render(); 
  In the second line, InputSource inputSource is suppossed to be 
  the .fo file after the processing of xmlInputSource by 
  xslInputSource. 
  I am using as xmlInputSource and xslInputSource two files that 
  I took from the chap 15 of the XMLbible 
  (attached). 
  Now, when the program tries to execute 
  "driver.buildFOTree(parser, inputSource);", I get the 
  following msg and Exception: 
  "building formatting object tree  WARNING: Unknown formatting object ^PERIODIC_TABLE 
   FOPException: org.xml.sax.SAXException (msg: 
  null)" 
  It seems to me that XSLTInputHandler is not doing its job 
  properly, because of the WARNING. 
  Again, if I run a line command with Fop -xml xmlInputSource -xsl xslInputSource -pdf test.pdf 
  everything is OK, which tells me that there shouldn't 
  be a problem with the input files. 
  Does anyone knows how to cure this? 
  Thanks a lot,     
  Gustavo 
   <>  
  <> **This 
  e-mail (including any documents which may accompany it) 
  containsinformation which is confidential and may also be 
  privileged.It is for the exclusive use of the intended recipient(s).If 
  you are not the intended recipient(s) please note that any form 
  ofdistribution, copying or use of this e-mail or the information in 
  itor attached to it is strictly prohibited and may be unlawful.If you 
  have received this e-mail in error please notify us immediatelyby e-mail 
  to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 anddelete the 
  e-mail.Please advise immediately if you or your employer do not consent 
  toInternet E-Mail for messages of this type.Information or opinions in 
  this message that do not relate to thebusiness of Windsor plc and/or 
  subsidiary and/or associated companiesshall be treated as neither given or 
  endorsed by 
  it.**


RE: Font Metric file from ttf file??

2001-07-06 Thread Mori, Donatella (AFIS)

Rajiv,
Please try with the following bat file after including the required jar file
in the FOP running directory.

-Original Message-
From: rajeev nair [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 9:40 AM
To: [EMAIL PROTECTED]
Subject: Font Metric file from ttf file??


hello
i have the ttf file and was trying to make fontmetric 
file using TTFReader class which is in fop.jar file.I
was trying with 

java -cp fop.jar java
org.apache.fop.fonts.apps.TTFReader
C:\fonts\SHIVN___.ttf C:\fonts\SHIVN___.ttf shiva.xml

but error no class found is obtaining.But i can see
the
TTFReader class in fop.jar.what is happening wrong
with me.
help expected.
regards
rajiv

--- Jeremias Maerki <[EMAIL PROTECTED]>
wrote:
> > how can i generate font metric file from pfb fies
> > which comes with font files.I don't have pfm
> files.I
> > read that The PFMReader tool does not yet
> interpret
> > PFB files.Please help me.
> 
> The PFM is currently the only way. If you have a PFA
> (which is in a text
> format) you can quite easily construct the XML font
> metric file by hand
> if you bother to consult the Adobe manuals for
> Postscript Type 1 fonts.
> But with only a PFB you won't have much luck, I
> guess. Try to get hold
> of the corresponding PFM.
> 
> 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]




 metricw.bat

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


RE: Font Metric file from ttf file??

2001-07-06 Thread rajeev nair

hello mori,
i couldn't understand which jar file u r saying
about.I tried by including the entire jar files in the
lib directory of fop download and also alone with
fop.jar,in which the required TTFReader class is(I
found the class by extracting fop.jar).
now what else i do.please take interest here.
regards
rajiv
--- "Mori, Donatella (AFIS)" <[EMAIL PROTECTED]>
wrote:
> Rajiv,
> Please try with the following bat file after
> including the required jar file
> in the FOP running directory.
> 
> -Original Message-
> From: rajeev nair [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: Font Metric file from ttf file??
> 
> 
> hello
> i have the ttf file and was trying to make
> fontmetric 
> file using TTFReader class which is in fop.jar
> file.I
> was trying with 
> 
> java -cp fop.jar java
> org.apache.fop.fonts.apps.TTFReader
> C:\fonts\SHIVN___.ttf C:\fonts\SHIVN___.ttf
> shiva.xml
> 
> but error no class found is obtaining.But i can see
> the
> TTFReader class in fop.jar.what is happening wrong
> with me.
> help expected.
> regards
> rajiv
> 
> --- Jeremias Maerki <[EMAIL PROTECTED]>
> wrote:
> > > how can i generate font metric file from pfb
> fies
> > > which comes with font files.I don't have pfm
> > files.I
> > > read that The PFMReader tool does not yet
> > interpret
> > > PFB files.Please help me.
> > 
> > The PFM is currently the only way. If you have a
> PFA
> > (which is in a text
> > format) you can quite easily construct the XML
> font
> > metric file by hand
> > if you bother to consult the Adobe manuals for
> > Postscript Type 1 fonts.
> > But with only a PFB you won't have much luck, I
> > guess. Try to get hold
> > of the corresponding PFM.
> > 
> > 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]
> 
> 
> 
> 

> ATTACHMENT part 2 application/octet-stream
name=metricw.bat
>
-
> 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: Font Metric file from ttf file??

2001-07-06 Thread Mori, Donatella (AFIS)

hello Rajiv,

I run my metricw.bat from MS-DOS window. My directory is configured in the
following way:

C:\fop9

where I have the following files:

metricw.bat
fop.jar
ant.jar
batik.jar
jimi-1.0.jar
w3c.jar
xalan-2.0.0.jar
xalanj1compact.jar
xerces.jar
xerces-1.2.3.jar
xml.jar

(I'm not sure whether they are all required, however ...)

then I have the subdirectory

C:\fop9\conf

that contains the file userconfig.xml 

When I submit "C:\fop9 > metricw" it works and gives to me the following
message:

C:\fop9>metricw
TTF Reader v1.1.1

Reading C:\WINNT\Fonts\tradbdo.ttf...

Number of glyphs in font: 530
Creating xml font file...

Creating CID encoded metrics
Writing xml font file TradArabicBold.xml...

** Note: This font contains license retrictions for
 embedding. This font shouldn't be embedded.

C:\fop9>

My JVM version is jdk1.2.2.


regards,
Donatella







-Original Message-
From: rajeev nair [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 12:18 PM
To: [EMAIL PROTECTED]
Subject: RE: Font Metric file from ttf file??


hello mori,
i couldn't understand which jar file u r saying
about.I tried by including the entire jar files in the
lib directory of fop download and also alone with
fop.jar,in which the required TTFReader class is(I
found the class by extracting fop.jar).
now what else i do.please take interest here.
regards
rajiv
--- "Mori, Donatella (AFIS)" <[EMAIL PROTECTED]>
wrote:
> Rajiv,
> Please try with the following bat file after
> including the required jar file
> in the FOP running directory.
> 
> -Original Message-
> From: rajeev nair [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: Font Metric file from ttf file??
> 
> 
> hello
> i have the ttf file and was trying to make
> fontmetric 
> file using TTFReader class which is in fop.jar
> file.I
> was trying with 
> 
> java -cp fop.jar java
> org.apache.fop.fonts.apps.TTFReader
> C:\fonts\SHIVN___.ttf C:\fonts\SHIVN___.ttf
> shiva.xml
> 
> but error no class found is obtaining.But i can see
> the
> TTFReader class in fop.jar.what is happening wrong
> with me.
> help expected.
> regards
> rajiv
> 
> --- Jeremias Maerki <[EMAIL PROTECTED]>
> wrote:
> > > how can i generate font metric file from pfb
> fies
> > > which comes with font files.I don't have pfm
> > files.I
> > > read that The PFMReader tool does not yet
> > interpret
> > > PFB files.Please help me.
> > 
> > The PFM is currently the only way. If you have a
> PFA
> > (which is in a text
> > format) you can quite easily construct the XML
> font
> > metric file by hand
> > if you bother to consult the Adobe manuals for
> > Postscript Type 1 fonts.
> > But with only a PFB you won't have much luck, I
> > guess. Try to get hold
> > of the corresponding PFM.
> > 
> > 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]
> 
> 
> 
> 

> ATTACHMENT part 2 application/octet-stream
name=metricw.bat
>
-
> 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]



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




Static-content vs. flow (newbee question)

2001-07-06 Thread Mads Soerensen - Interact



Hi 
I have an SVG image which I would like to use as 
background image for all pages in the pdf-file I am generating. 

 
Reading the previous postings in this list, it is 
my understanding that background image is not yet supported, is this 
correct?
 
Instead a previous posting suggested to place the 
SVG image in e.g. xsl-region-after as a static content. But the 
static-content (the SVG) is placed 
above the flow of the body-region thus covering 
some of the text in the body-region. Is there any way to change this? or do 
anybody have 
a better idea?
 
Suggestions appriciated
 
Mads Sorensen


Re: XSLTInputHandler not doing its job??

2001-07-06 Thread Abdul Wahab

Hi Gustavo, Karen and All!

I am also using the same coding as how u code(below) to covert from XML to
PDF using XSL.
But I am getting "No Such MethodError" exception eventhough the method is
existed in class file.
Could u please help me to solve this problem.

java.lang.NoSuchMethodError
at
org.apache.xpath.DOM2Helper.getNamespaceOfNode(DOM2Helper.java:348)
at org.apache.xpath.patterns.NodeTest.execute(NodeTest.java:471)

Thanks,
Wahab.

- Original Message -
From: "Wolf Gustavo (SGC-EXT)" <[EMAIL PROTECTED]>
To: "Fop (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 11:49 PM
Subject: XSLTInputHandler not doing its job??


> Hi,
>   as I said a few hours ago, I have the following code:
>
> InputHandler inputHandler = new
> XSLTInputHandler(xmlInputSource,xslInputSource);
> InputSource inputSource = inputHandler.getInputSource();
> XMLReader  parser = (XMLReader)
> Class.forName(this.parserClass).newInstance();
>
> parser.setFeature("http://xml.org/sax/features/namespace-prefixes",true);
> /**
> * Creates the driver telling it to write the output to a file.
> */
> Driver driver = new Driver();
> driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer");
> //  ERROR IN THE FOLLOWING LINE
> driver.buildFOTree(parser, inputSource);
> File test = new File("test.pdf");
> driver.setOutputStream(new java.io.FileOutputStream(test));
> driver.format();
> driver.render();
>
> In the second line, InputSource inputSource is suppossed to be the .fo
file
> after the processing of xmlInputSource by xslInputSource.
>
> I am using as xmlInputSource and xslInputSource two files that I took from
> the chap 15 of the XMLbible (attached).
>
> Now, when the program tries to execute "driver.buildFOTree(parser,
> inputSource);", I get the following msg and Exception:
>
> "building formatting object tree
>  WARNING: Unknown formatting object ^PERIODIC_TABLE
>  FOPException: org.xml.sax.SAXException (msg: null)"
>
> It seems to me that XSLTInputHandler is not doing its job properly,
because
> of the WARNING.
>
> Again, if I run a line command with
> Fop -xml xmlInputSource -xsl xslInputSource -pdf test.pdf
> everything is OK, which tells me that there shouldn't be a problem with
the
> input files.
>
> Does anyone knows how to cure this?
>
> Thanks a lot,
> Gustavo
>
>
>
>
>
>  <>  <>
>
>
>






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


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




[Bug 2475] New: - Borders don't appear to work in

2001-07-06 Thread bugzilla

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

*** shadow/2475 Fri Jul  6 05:14:23 2001
--- shadow/2475.tmp.15120   Fri Jul  6 05:14:24 2001
***
*** 0 
--- 1,35 
+ ++
+ | Borders don't appear to work in  |
+ ++
+ |Bug #: 2475Product: Fop |
+ |   Status: NEW Version: all |
+ |   Resolution:Platform: PC  |
+ | Severity: Normal   OS/Version: Windows NT/2K   |
+ | Priority: Other Component: pdf renderer|
+ ++
+ |  Assigned To: [EMAIL PROTECTED]   |
+ |  Reported By: [EMAIL PROTECTED]|
+ |  CC list: Cc:  |
+ ++
+ |  URL:  |
+ ++
+ |  DESCRIPTION   |
+ In version 0.19.0-cvs, on NT:
+ 
+ While the following works,
+ ...
+ 
+ the following appears NOT to work
+ ...
+ 
+ Results seem to be consistent among 
+ -awt
+ -print
+ -pdf
+ 
+ 'best
+ -Ralph LaChance

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




svg/PDFGraphics2D.java between version 1.7 and 1.8

2001-07-06 Thread Thieler Jens

Hi,

I'm a great fan of org.apache.svg.PDFTranscoder
or rather
org.apache.svg.PDFDocumentGraphics2D.

PDFDocumentGraphics2D initializes with
   super(textAsShapes)

So the FontState in the superclass PDFGraphics2D
is not initialized.

After the augmentation of method PDFGraphics2D.drawString(...)
on June 26 we're now bound for a NPE in line 710:
   fontState = new FontState(fontState.getFontInfo(), name,
 style, weight, size * 1000, 0);

Keiron, please make me smile again.

Jens Thieler

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




Re: running from servlet, is buffering needed?

2001-07-06 Thread Dave Frankson

I use FOP solely from a servlet to handle web-based reporting.  Our
company has a web-based student information system for k-12 schools.
Currently we are using Access for reporting, but would like to switch to FO.
We have already written everything to bulk print 3000 student report cards,
but FOP will choke any server we have.

Dave




- Original Message -
From: "Seshadri G.K." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 1:25 AM
Subject: running from servlet, is buffering needed?


> I want to know is the memory patch really needed when fop runs from a
> servelet. Iam sure when it is servelet invoked, the xsl-fo files are much
> smaller, because some user is waiting to see the files on the browser,
> unlike commandline where really big files could be used. If that is so,
then
> I could commit the memory patch to fop.
>
> seshadri
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




overflow-paginate

2001-07-06 Thread Robyn MacDuff

I am looking for help with overflow-paginate function of XSL. I have data
elements that overflow the block sizes and overflow-paginate="8.00in"
doesn't seem to be workning for me.

Robyn MacDuff
[EMAIL PROTECTED]


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




Need Working Sample

2001-07-06 Thread Jim Urban

Hi, I am new to FOP.  I have a servlet which dynamically generates XML.  I
need to apply an XSL stylesheet containing FO tags to generate a FO version
of the XML and then I need to run this FO version of the XML through FOP (or
Driver) so the servlet can return a dynamically created PDF to the browser.
Does anyone have a working example of how to do this?  Only the XSL style
sheet containing the FO tags used in the initial transform will be on disk.
Please help, I have to get this working.

Thanks,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


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


Re: Need Working Sample

2001-07-06 Thread Cyril Rognon

There is a FOP servlet example in the distribution of FOP :

/docs/examples/embedding/FopServlet.java

I think it will answer all the beginners questions.
See the example section on the FOP site to see all pre-answered question 
you might have in your beginning journey.
(starting with http://xml.apache.org/fop/embedding.html)

Cyril

At 10:08 06/07/01 -0500, you wrote:
>Hi, I am new to FOP.  I have a servlet which dynamically generates XML.  I
>need to apply an XSL stylesheet containing FO tags to generate a FO version
>of the XML and then I need to run this FO version of the XML through FOP (or
>Driver) so the servlet can return a dynamically created PDF to the browser.
>Does anyone have a working example of how to do this?  Only the XSL style
>sheet containing the FO tags used in the initial transform will be on disk.
>Please help, I have to get this working.
>
>Thanks,


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




RE: Need Working Sample

2001-07-06 Thread Wolf Gustavo (SGC-EXT)

Hi Jim,
I have exactly the same problem, and I've just found a non
elegant, working solution:

I generate my XML file, and then call the command line Fop from within my
servlet:

Runtime.getRuntime().exec(new String[]{"java.exe", "-cp",
"c:\\fop\\Fop-0.18.1-DEV\\fop.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\w3c.jar;c:\\
fop\\Fop-0.18.1-DEV\\lib\\xalan-2.0.0.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\xerc
es-1.2.3.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\jimi-1.0.jar",
"org.apache.fop.apps.Fop", "-xml" , "c:\\prueba.xml", "-xsl" ,
"c:\\prueba.xsl", "-pdf" , "c:\\prueba.pdf"}); 

As I said, it is NOT elegant, but after sweating for days with problems of
all type doing the elegant thing, I get my beautiful PDF on disk.

Of course you should adapt the names of trhe directories  and the xml and
xsl files.

Cheers,
   Gustavo

PS: if someone has an elegant solution I would be happy to use it too. 

>  -Message d'origine-
> De :  Jim Urban [mailto:[EMAIL PROTECTED]] 
> Envoyé :  vendredi, 6. juillet 2001 17:09
> À :   [EMAIL PROTECTED]
> Objet :   Need Working Sample
> 
> Hi, I am new to FOP.  I have a servlet which dynamically generates XML.  I
> need to apply an XSL stylesheet containing FO tags to generate a FO
> version of the XML and then I need to run this FO version of the XML
> through FOP (or Driver) so the servlet can return a dynamically created
> PDF to the browser.  Does anyone have a working example of how to do this?
> Only the XSL style sheet containing the FO tags used in the initial
> transform will be on disk.  Please help, I have to get this working.
> 
> Thanks,
> 
> Jim Urban
> Product Manager
> Netsteps Inc.
> Suite 505E
> 1 Pierce Pl.
> Itasca, IL  60143
> Voice:  (630) 250-3045 x2164
> Fax:  (630) 250-3046
> 
> << Fichier: ATT14204.txt>> 

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




RE: Need Working Sample

2001-07-06 Thread Wolf Gustavo (SGC-EXT)

The problem with that example is that it assumes that you already have the
.fo file, the production of which I've found to be the difficult part.

Gustavo

-Message d'origine-
De : Cyril Rognon [mailto:[EMAIL PROTECTED]]
Envoye : vendredi, 6. juillet 2001 17:03
A : [EMAIL PROTECTED]
Objet : Re: Need Working Sample


There is a FOP servlet example in the distribution of FOP :

/docs/examples/embedding/FopServlet.java

I think it will answer all the beginners questions.
See the example section on the FOP site to see all pre-answered question 
you might have in your beginning journey.
(starting with http://xml.apache.org/fop/embedding.html)

Cyril

At 10:08 06/07/01 -0500, you wrote:
>Hi, I am new to FOP.  I have a servlet which dynamically generates XML.  I
>need to apply an XSL stylesheet containing FO tags to generate a FO version
>of the XML and then I need to run this FO version of the XML through FOP
(or
>Driver) so the servlet can return a dynamically created PDF to the browser.
>Does anyone have a working example of how to do this?  Only the XSL style
>sheet containing the FO tags used in the initial transform will be on disk.
>Please help, I have to get this working.
>
>Thanks,


-
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: Need Working Sample

2001-07-06 Thread Jim Urban

The FopServlet reads a .fo file.  This is of no use to me.  I will
dyamically generate XML contianing only data.  This XML will be in a
StringBuffer.  I first need to apply an XSL sytle sheet to this
StringBuffer, generating a new XML stream (IN MEMORY).  This new (IN MEMORY)
XML stream then needs to be ran through FOP to generate a PDF stream which
will be sent back to the browser.  The embed sample also shows how to
process .FO files.  This is not what I want  The ONLY file that can be
on disk is the XSL file which contains the FO tags to apply to the XML data.

Jim

-Original Message-
From: Cyril Rognon [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 10:03 AM
To: [EMAIL PROTECTED]
Subject: Re: Need Working Sample


There is a FOP servlet example in the distribution of FOP :

/docs/examples/embedding/FopServlet.java

I think it will answer all the beginners questions.
See the example section on the FOP site to see all pre-answered question
you might have in your beginning journey.
(starting with http://xml.apache.org/fop/embedding.html)

Cyril

At 10:08 06/07/01 -0500, you wrote:
>Hi, I am new to FOP.  I have a servlet which dynamically generates XML.  I
>need to apply an XSL stylesheet containing FO tags to generate a FO version
>of the XML and then I need to run this FO version of the XML through FOP
(or
>Driver) so the servlet can return a dynamically created PDF to the browser.
>Does anyone have a working example of how to do this?  Only the XSL style
>sheet containing the FO tags used in the initial transform will be on disk.
>Please help, I have to get this working.
>
>Thanks,


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



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




AW: Need Working Sample

2001-07-06 Thread Erik Rehrmann

Hi Gustavo,

the following works great:

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Driver driver = new Driver();
  driver.setRenderer(Driver.RENDER_PDF);
  InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
  org.xml.sax.XMLReader parser = inputHandler.getParser();
  driver.buildFOTree(parser, inputHandler.getInputSource());
  driver.format();
  driver.setOutputStream(out);
  driver.render();

  response.setContentType("application/pdf");
  byte[] content = out.toByteArray();
  response.setContentLength(content.length);
  response.getOutputStream().write(content);
  response.getOutputStream().flush();

This example lets the servlet stream the result directly to the client browser. If you 
want to have the pdf file on your disk instead, just write use an other output stream!

It currently does not work for IE5.5, but I'll check the hint of Alex McLintock 
earlier in this list.

Hope this helps you out,
___
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]




> -Ursprüngliche Nachricht-
> Von: Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 6. Juli 2001 17:11
> An: '[EMAIL PROTECTED]'
> Betreff: RE: Need Working Sample
> 
> 
> Hi Jim,
> I have exactly the same problem, and I've just found a non
> elegant, working solution:
> 
> I generate my XML file, and then call the command line Fop 
> from within my
> servlet:
> 
> Runtime.getRuntime().exec(new String[]{"java.exe", "-cp",
> "c:\\fop\\Fop-0.18.1-DEV\\fop.jar;c:\\fop\\Fop-0.18.1-DEV\\lib
> \\w3c.jar;c:\\
> fop\\Fop-0.18.1-DEV\\lib\\xalan-2.0.0.jar;c:\\fop\\Fop-0.18.1-
> DEV\\lib\\xerc
> es-1.2.3.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\jimi-1.0.jar",
> "org.apache.fop.apps.Fop", "-xml" , "c:\\prueba.xml", "-xsl" ,
> "c:\\prueba.xsl", "-pdf" , "c:\\prueba.pdf"}); 
> 
> As I said, it is NOT elegant, but after sweating for days 
> with problems of
> all type doing the elegant thing, I get my beautiful PDF on disk.
> 
> Of course you should adapt the names of trhe directories  and 
> the xml and
> xsl files.
> 
> Cheers,
>Gustavo
> 
> PS: if someone has an elegant solution I would be happy to 
> use it too. 
> 
> >  -Message d'origine-
> > De :Jim Urban [mailto:[EMAIL PROTECTED]] 
> > Envoyé :vendredi, 6. juillet 2001 17:09
> > À : [EMAIL PROTECTED]
> > Objet : Need Working Sample
> > 
> > Hi, I am new to FOP.  I have a servlet which dynamically 
> generates XML.  I
> > need to apply an XSL stylesheet containing FO tags to generate a FO
> > version of the XML and then I need to run this FO version of the XML
> > through FOP (or Driver) so the servlet can return a 
> dynamically created
> > PDF to the browser.  Does anyone have a working example of 
> how to do this?
> > Only the XSL style sheet containing the FO tags used in the initial
> > transform will be on disk.  Please help, I have to get this working.
> > 
> > Thanks,
> > 
> > Jim Urban
> > Product Manager
> > Netsteps Inc.
> > Suite 505E
> > 1 Pierce Pl.
> > Itasca, IL  60143
> > Voice:  (630) 250-3045 x2164
> > Fax:  (630) 250-3046
> > 
> > << Fichier: ATT14204.txt>> 
> 
> -
> 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: Need Working Sample

2001-07-06 Thread Ralph LaChance

At 10:08 AM 7/6/01 -0500, you wrote:
Hi, I am new to
FOP.
I urge you to check the references on the fop web site -- 
particularly Ch15 of Harold. XML Bible
and the two Eisenburg tutorials 
http://www.xml.com/pub/a/2001/01/17/xsl-fo/index.html




'
Best,
-Ralph
LaChance




RE: Need Working Sample

2001-07-06 Thread Jim Urban

Sorry, but this does not work for two reasons.

1. The XML does NOT exist on disk!  It is in memory only, and writing it to
disk is NOT an option.

2. This is a high traffic web application.  Starting a new JVM to process
FOP is too costly.

There must be a way for this FOP thing to read raw (data only) XML (in
memory) apply an XSL style sheet to add the FO tags, then format the PDF and
return it to a browser.  I can't believe I am the first person in the word
to need to do this.

If I seem upset, I'm sorry.  But I have been fighting with FOP since last
week to get it to do this.  FOP works great for taking FO files and
converting them to PDF files, but that's not what I have to do.  I have a
deadline to meet and I have wasted a week trying to get FOP to work.

Jim

-Original Message-
From: Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Need Working Sample


Hi Jim,
I have exactly the same problem, and I've just found a non
elegant, working solution:

I generate my XML file, and then call the command line Fop from within my
servlet:

Runtime.getRuntime().exec(new String[]{"java.exe", "-cp",
"c:\\fop\\Fop-0.18.1-DEV\\fop.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\w3c.jar;c:\\
fop\\Fop-0.18.1-DEV\\lib\\xalan-2.0.0.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\xerc
es-1.2.3.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\jimi-1.0.jar",
"org.apache.fop.apps.Fop", "-xml" , "c:\\prueba.xml", "-xsl" ,
"c:\\prueba.xsl", "-pdf" , "c:\\prueba.pdf"});

As I said, it is NOT elegant, but after sweating for days with problems of
all type doing the elegant thing, I get my beautiful PDF on disk.

Of course you should adapt the names of trhe directories  and the xml and
xsl files.

Cheers,
   Gustavo

PS: if someone has an elegant solution I would be happy to use it too.

>  -Message d'origine-
> De :  Jim Urban [mailto:[EMAIL PROTECTED]]
> Envoyé :  vendredi, 6. juillet 2001 17:09
> À :   [EMAIL PROTECTED]
> Objet :   Need Working Sample
>
> Hi, I am new to FOP.  I have a servlet which dynamically generates XML.  I
> need to apply an XSL stylesheet containing FO tags to generate a FO
> version of the XML and then I need to run this FO version of the XML
> through FOP (or Driver) so the servlet can return a dynamically created
> PDF to the browser.  Does anyone have a working example of how to do this?
> Only the XSL style sheet containing the FO tags used in the initial
> transform will be on disk.  Please help, I have to get this working.
>
> Thanks,
>
> Jim Urban
> Product Manager
> Netsteps Inc.
> Suite 505E
> 1 Pierce Pl.
> Itasca, IL  60143
> Voice:  (630) 250-3045 x2164
> Fax:  (630) 250-3046
>
> << Fichier: ATT14204.txt>>

-
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: Need Working Sample

2001-07-06 Thread Marc Lindsay

You are not alone Jim,

I have exactly the same need than you (but I also want the XSL in a string
buffer).  I'm waiting impatiently the answer of your question.
Unfortunetly, I don't have any hint to provide.

Marc

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: RE: Need Working Sample


Sorry, but this does not work for two reasons.

1. The XML does NOT exist on disk!  It is in memory only, and writing it to
disk is NOT an option.

2. This is a high traffic web application.  Starting a new JVM to process
FOP is too costly.

There must be a way for this FOP thing to read raw (data only) XML (in
memory) apply an XSL style sheet to add the FO tags, then format the PDF and
return it to a browser.  I can't believe I am the first person in the word
to need to do this.

If I seem upset, I'm sorry.  But I have been fighting with FOP since last
week to get it to do this.  FOP works great for taking FO files and
converting them to PDF files, but that's not what I have to do.  I have a
deadline to meet and I have wasted a week trying to get FOP to work.

Jim

-Original Message-
From: Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 10:11 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Need Working Sample


Hi Jim,
I have exactly the same problem, and I've just found a non
elegant, working solution:

I generate my XML file, and then call the command line Fop from within my
servlet:

Runtime.getRuntime().exec(new String[]{"java.exe", "-cp",
"c:\\fop\\Fop-0.18.1-DEV\\fop.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\w3c.jar;c:\\
fop\\Fop-0.18.1-DEV\\lib\\xalan-2.0.0.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\xerc
es-1.2.3.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\jimi-1.0.jar",
"org.apache.fop.apps.Fop", "-xml" , "c:\\prueba.xml", "-xsl" ,
"c:\\prueba.xsl", "-pdf" , "c:\\prueba.pdf"});

As I said, it is NOT elegant, but after sweating for days with problems of
all type doing the elegant thing, I get my beautiful PDF on disk.

Of course you should adapt the names of trhe directories  and the xml and
xsl files.

Cheers,
   Gustavo

PS: if someone has an elegant solution I would be happy to use it too.

>  -Message d'origine-
> De :  Jim Urban [mailto:[EMAIL PROTECTED]]
> Envoyé :  vendredi, 6. juillet 2001 17:09
> À :   [EMAIL PROTECTED]
> Objet :   Need Working Sample
>
> Hi, I am new to FOP.  I have a servlet which dynamically generates XML.  I
> need to apply an XSL stylesheet containing FO tags to generate a FO
> version of the XML and then I need to run this FO version of the XML
> through FOP (or Driver) so the servlet can return a dynamically created
> PDF to the browser.  Does anyone have a working example of how to do this?
> Only the XSL style sheet containing the FO tags used in the initial
> transform will be on disk.  Please help, I have to get this working.
>
> Thanks,
>
> Jim Urban
> Product Manager
> Netsteps Inc.
> Suite 505E
> 1 Pierce Pl.
> Itasca, IL  60143
> Voice:  (630) 250-3045 x2164
> Fax:  (630) 250-3046
>
> << Fichier: ATT14204.txt>>

-
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: Need Working Sample

2001-07-06 Thread Jim Urban

>   InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
What is xmlFile?  Please don't tell me its a file.  My XML is NOT in a file,
its in a StringBuffer in memory, not on disk.

Jim

-Original Message-
From: Erik Rehrmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 10:26 AM
To: '[EMAIL PROTECTED]'
Subject: AW: Need Working Sample


Hi Gustavo,

the following works great:

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Driver driver = new Driver();
  driver.setRenderer(Driver.RENDER_PDF);
  InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
  org.xml.sax.XMLReader parser = inputHandler.getParser();
  driver.buildFOTree(parser, inputHandler.getInputSource());
  driver.format();
  driver.setOutputStream(out);
  driver.render();

  response.setContentType("application/pdf");
  byte[] content = out.toByteArray();
  response.setContentLength(content.length);
  response.getOutputStream().write(content);
  response.getOutputStream().flush();

This example lets the servlet stream the result directly to the client
browser. If you want to have the pdf file on your disk instead, just write
use an other output stream!

It currently does not work for IE5.5, but I'll check the hint of Alex
McLintock earlier in this list.

Hope this helps you out,
___
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]




> -Ursprüngliche Nachricht-
> Von: Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 6. Juli 2001 17:11
> An: '[EMAIL PROTECTED]'
> Betreff: RE: Need Working Sample
>
>
> Hi Jim,
> I have exactly the same problem, and I've just found a non
> elegant, working solution:
>
> I generate my XML file, and then call the command line Fop
> from within my
> servlet:
>
> Runtime.getRuntime().exec(new String[]{"java.exe", "-cp",
> "c:\\fop\\Fop-0.18.1-DEV\\fop.jar;c:\\fop\\Fop-0.18.1-DEV\\lib
> \\w3c.jar;c:\\
> fop\\Fop-0.18.1-DEV\\lib\\xalan-2.0.0.jar;c:\\fop\\Fop-0.18.1-
> DEV\\lib\\xerc
> es-1.2.3.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\jimi-1.0.jar",
> "org.apache.fop.apps.Fop", "-xml" , "c:\\prueba.xml", "-xsl" ,
> "c:\\prueba.xsl", "-pdf" , "c:\\prueba.pdf"});
>
> As I said, it is NOT elegant, but after sweating for days
> with problems of
> all type doing the elegant thing, I get my beautiful PDF on disk.
>
> Of course you should adapt the names of trhe directories  and
> the xml and
> xsl files.
>
> Cheers,
>Gustavo
>
> PS: if someone has an elegant solution I would be happy to
> use it too.
>
> >  -Message d'origine-
> > De :Jim Urban [mailto:[EMAIL PROTECTED]]
> > Envoyé :vendredi, 6. juillet 2001 17:09
> > À : [EMAIL PROTECTED]
> > Objet : Need Working Sample
> >
> > Hi, I am new to FOP.  I have a servlet which dynamically
> generates XML.  I
> > need to apply an XSL stylesheet containing FO tags to generate a FO
> > version of the XML and then I need to run this FO version of the XML
> > through FOP (or Driver) so the servlet can return a
> dynamically created
> > PDF to the browser.  Does anyone have a working example of
> how to do this?
> > Only the XSL style sheet containing the FO tags used in the initial
> > transform will be on disk.  Please help, I have to get this working.
> >
> > Thanks,
> >
> > Jim Urban
> > Product Manager
> > Netsteps Inc.
> > Suite 505E
> > 1 Pierce Pl.
> > Itasca, IL  60143
> > Voice:  (630) 250-3045 x2164
> > Fax:  (630) 250-3046
> >
> > << Fichier: ATT14204.txt>>
>
> -
> 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: Need Working Sample

2001-07-06 Thread John Wyman
Title: Message



This example uses xml from a file, but if you 
define your Stream as a StreamSource you can use this to process the XML - 
XSL to create an in mem FO and feed it to the Driver as shown. hope this 
helps.  
   
try 
{   
InputStream is 
=    
new BufferedInputStream(new 
FileInputStream(args[3]));   
StreamSource xmlSource = new StreamSource(is, 
args[3]);   xmlSource.setSystemId("d:\\xmetal2\\Rules\\");    
is = new BufferedInputStream(new 
FileInputStream(args[2]));    
StreamSource xslSource = new StreamSource(is, 
args[2]);   xslSource.setSystemId("d:\\xmetal2\\Rules\\");    
DOMResult result = new DOMResult();
 
    
TransformerFactory f = 
TransformerFactory.newInstance();    
Templates templates = 
f.newTemplates(xslSource);    
Transformer transformer = templates.newTransformer();   int 
nArgs = 0;   for (int i = 0; i < args.length; i++) 
{ int k = 
args[i].indexOf('='); if (k > 
0)   transformer.setParameter(args[i].substring(0, 
k),  args[i].substring(k + 
1)); else   args[nArgs++] = 
args[i];   }
 
    
transformer.transform(xmlSource, result);
 
    Driver 
driver = new Driver();
 
    
driver.setRenderer(Driver.RENDER_PDF);
 
    
driver.buildFOTree((Document) result.getNode());
 
    
driver.format();
 
    
driver.setOutputStream(new FileOutputStream(args[1]+".pdf"));
 
    
driver.render();  }  catch (Exception ex) { 
System.out.println(ex.toString()); 
}  System.out.println("Finished"); }
 
 
John H. Wyman5160 Darry LaneDublin, OH 
43016(614)-889-0698[EMAIL PROTECTED] Wyman 
Genealogy Site Francis Wyman Assoc 
email List http://groups.yahoo.com/group/FrancisWymanAssocWyman 
Family Genealogy Forum The 
Wyman Surname Message Board   


  
  -Original Message-From: Jim Urban 
  [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 11:09 
  AMTo: [EMAIL PROTECTED]Subject: Need Working 
  Sample
  Hi, I am new to FOP.  I have a servlet which 
  dynamically generates XML.  I need to apply an XSL stylesheet containing 
  FO tags to generate a FO version of the XML and then I need to run this FO 
  version of the XML through FOP (or Driver) so the servlet can return a 
  dynamically created PDF to the browser.  Does anyone have a working 
  example of how to do this?  Only the XSL style sheet containing the FO 
  tags used in the initial transform will be on disk.  Please help, I have 
  to get this working.
  Thanks, 
  Jim Urban Product Manager Netsteps Inc. 
  Suite 505E 1 
  Pierce Pl. Itasca, IL  60143 
  Voice:  (630) 250-3045 x2164 Fax:  (630) 250-3046 



RE: Need Working Sample

2001-07-06 Thread Wolf Gustavo (SGC-EXT)

Hi Erik,
 I have tried your stuff, but it still gives me the same problem i
have since two days after I try to instantiate the parser:

javax.xml.transform.TransformerConfigurationException: Namespace not
supported by SAXParser
Error msg: null

At the risk of looking abusive, could someone take a look at the xml and xsl
files (they are really short examples that work with Fop as a line command,
and I'll invite a beer to whomever comes to Geneva (CH, not IL) to pick it
up)?

They are attached once more.

Really thanks, and sorry to know that Jim cannot use my non-elegant
solution. I am fighting this stuff for days also and I have to finish my
project by next Friday.



-Message d'origine-
De : Erik Rehrmann [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi, 6. juillet 2001 17:26
À : '[EMAIL PROTECTED]'
Objet : AW: Need Working Sample


Hi Gustavo,

the following works great:

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Driver driver = new Driver();
  driver.setRenderer(Driver.RENDER_PDF);
  InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
  org.xml.sax.XMLReader parser = inputHandler.getParser();
  driver.buildFOTree(parser, inputHandler.getInputSource());
  driver.format();
  driver.setOutputStream(out);
  driver.render();

  response.setContentType("application/pdf");
  byte[] content = out.toByteArray();
  response.setContentLength(content.length);
  response.getOutputStream().write(content);
  response.getOutputStream().flush();

This example lets the servlet stream the result directly to the client
browser. If you want to have the pdf file on your disk instead, just write
use an other output stream!

It currently does not work for IE5.5, but I'll check the hint of Alex
McLintock earlier in this list.

Hope this helps you out,
___
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]




> -Ursprüngliche Nachricht-
> Von: Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 6. Juli 2001 17:11
> An: '[EMAIL PROTECTED]'
> Betreff: RE: Need Working Sample
> 
> 
> Hi Jim,
> I have exactly the same problem, and I've just found a non
> elegant, working solution:
> 
> I generate my XML file, and then call the command line Fop 
> from within my
> servlet:
> 
> Runtime.getRuntime().exec(new String[]{"java.exe", "-cp",
> "c:\\fop\\Fop-0.18.1-DEV\\fop.jar;c:\\fop\\Fop-0.18.1-DEV\\lib
> \\w3c.jar;c:\\
> fop\\Fop-0.18.1-DEV\\lib\\xalan-2.0.0.jar;c:\\fop\\Fop-0.18.1-
> DEV\\lib\\xerc
> es-1.2.3.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\jimi-1.0.jar",
> "org.apache.fop.apps.Fop", "-xml" , "c:\\prueba.xml", "-xsl" ,
> "c:\\prueba.xsl", "-pdf" , "c:\\prueba.pdf"}); 
> 
> As I said, it is NOT elegant, but after sweating for days 
> with problems of
> all type doing the elegant thing, I get my beautiful PDF on disk.
> 
> Of course you should adapt the names of trhe directories  and 
> the xml and
> xsl files.
> 
> Cheers,
>Gustavo
> 
> PS: if someone has an elegant solution I would be happy to 
> use it too. 
> 
> >  -Message d'origine-
> > De :Jim Urban [mailto:[EMAIL PROTECTED]] 
> > Envoyé :vendredi, 6. juillet 2001 17:09
> > À : [EMAIL PROTECTED]
> > Objet : Need Working Sample
> > 
> > Hi, I am new to FOP.  I have a servlet which dynamically 
> generates XML.  I
> > need to apply an XSL stylesheet containing FO tags to generate a FO
> > version of the XML and then I need to run this FO version of the XML
> > through FOP (or Driver) so the servlet can return a 
> dynamically created
> > PDF to the browser.  Does anyone have a working example of 
> how to do this?
> > Only the XSL style sheet containing the FO tags used in the initial
> > transform will be on disk.  Please help, I have to get this working.
> > 
> > Thanks,
> > 
> > Jim Urban
> > Product Manager
> > Netsteps Inc.
> > Suite 505E
> > 1 Pierce Pl.
> > Itasca, IL  60143
> > Voice:  (630) 250-3045 x2164
> > Fax:  (630) 250-3046
> > 
> > << Fichier: ATT14204.txt>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 

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



 prueba.xml
 prueba.xsl

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


AW: Need Working Sample

2001-07-06 Thread Erik Rehrmann

Jim,

don't be upset! Please take into account that the mails arrived not right on time when 
you sent another mail! I sent my mail BEFORE I saw you're working with memory streams!

It's is possible to handle strings as stream. Have a look at the streams bean of 
alphaworks (streams.jar)
http://www.alphaworks.ibm.com/ab.nsf/techreqs/Streams

Hey, ... keep cool, it's just another deadline ;-)
___
Erik Rehrmann - IOn AG
[EMAIL PROTECTED]



> -Ursprüngliche Nachricht-
> Von: Jim Urban [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 6. Juli 2001 17:52
> An: [EMAIL PROTECTED]
> Betreff: RE: Need Working Sample
> 
> 
> Sorry, but this does not work for two reasons.
> 
> 1. The XML does NOT exist on disk!  It is in memory only, and 
> writing it to
> disk is NOT an option.
> 
> 2. This is a high traffic web application.  Starting a new 
> JVM to process
> FOP is too costly.
> 
> There must be a way for this FOP thing to read raw (data only) XML (in
> memory) apply an XSL style sheet to add the FO tags, then 
> format the PDF and
> return it to a browser.  I can't believe I am the first 
> person in the word
> to need to do this.
> 
> If I seem upset, I'm sorry.  But I have been fighting with 
> FOP since last
> week to get it to do this.  FOP works great for taking FO files and
> converting them to PDF files, but that's not what I have to 
> do.  I have a
> deadline to meet and I have wasted a week trying to get FOP to work.
> 
> Jim
> 
> -Original Message-
> From: Wolf Gustavo (SGC-EXT) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 10:11 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Need Working Sample
> 
> 
> Hi Jim,
> I have exactly the same problem, and I've just found a non
> elegant, working solution:
> 
> I generate my XML file, and then call the command line Fop 
> from within my
> servlet:
> 
> Runtime.getRuntime().exec(new String[]{"java.exe", "-cp",
> "c:\\fop\\Fop-0.18.1-DEV\\fop.jar;c:\\fop\\Fop-0.18.1-DEV\\lib
> \\w3c.jar;c:\\
> fop\\Fop-0.18.1-DEV\\lib\\xalan-2.0.0.jar;c:\\fop\\Fop-0.18.1-
> DEV\\lib\\xerc
> es-1.2.3.jar;c:\\fop\\Fop-0.18.1-DEV\\lib\\jimi-1.0.jar",
> "org.apache.fop.apps.Fop", "-xml" , "c:\\prueba.xml", "-xsl" ,
> "c:\\prueba.xsl", "-pdf" , "c:\\prueba.pdf"});
> 
> As I said, it is NOT elegant, but after sweating for days 
> with problems of
> all type doing the elegant thing, I get my beautiful PDF on disk.
> 
> Of course you should adapt the names of trhe directories  and 
> the xml and
> xsl files.
> 
> Cheers,
>Gustavo
> 
> PS: if someone has an elegant solution I would be happy to use it too.
> 
> >  -Message d'origine-
> > De :Jim Urban [mailto:[EMAIL PROTECTED]]
> > Envoyé :vendredi, 6. juillet 2001 17:09
> > À : [EMAIL PROTECTED]
> > Objet : Need Working Sample
> >
> > Hi, I am new to FOP.  I have a servlet which dynamically 
> generates XML.  I
> > need to apply an XSL stylesheet containing FO tags to generate a FO
> > version of the XML and then I need to run this FO version of the XML
> > through FOP (or Driver) so the servlet can return a 
> dynamically created
> > PDF to the browser.  Does anyone have a working example of 
> how to do this?
> > Only the XSL style sheet containing the FO tags used in the initial
> > transform will be on disk.  Please help, I have to get this working.
> >
> > Thanks,
> >
> > Jim Urban
> > Product Manager
> > Netsteps Inc.
> > Suite 505E
> > 1 Pierce Pl.
> > Itasca, IL  60143
> > Voice:  (630) 250-3045 x2164
> > Fax:  (630) 250-3046
> >
> > << Fichier: ATT14204.txt>>
> 
> -
> 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]




AW: Need Working Sample

2001-07-06 Thread Thieler Jens

Hi Gustavo,

I've tried several ways to pass the data (in memory)
from source (basically SVG in my case) through FOP.
Here is one example:

 Node svgTree = ...// DOM source
 Reader style = ...// the XSL
 OutputStream stream = ... // destination

 // Do the XSLT.
 Source source = new DOMSource(svgTree);
 Result result = new DOMResult();
 try {
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer =
   factory.newTransformer(new StreamSource(style));
transformer.transform(source, result);
 } catch( TransformerFactoryConfigurationError tfe ) {
tfe.printStackTrace();
return;
 } catch( TransformerConfigurationException tce ) {
tce.printStackTrace();
return;
 } catch( TransformerException te ) {
te.printStackTrace();
return;
 }
 // And here we've got the FO DOM.
 Document foDocument = (Document)((DOMResult)result).getNode();

 // Create the PDF.
 Driver driver = new Driver();
 driver.setRenderer(Driver.RENDER_PDF);
 
driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
 driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
 
driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
 
driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
 try {
driver.setOutputStream(stream);
driver.buildFOTree(foDocument);
driver.format();
driver.render();   
 } catch( FOPException fe ) {
fe.printStackTrace();
 } catch( IOException ioe ) {
ioe.printStackTrace();
 } finally {
try { stream.close(); }
catch( IOException e ) {}
 }

I hope this will help you - I'm looking forward to the beer.
(I've never been to CH. Do they know about beer there?)

Jens Thieler

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




RE: Need Working Sample

2001-07-06 Thread Steven Lane

>The FopServlet reads a .fo file.  This is of no use to me.  I will
>dyamically generate XML contianing only data.  This XML will be in a
>StringBuffer.  I first need to apply an XSL sytle sheet to this
>StringBuffer, generating a new XML stream (IN MEMORY).  This new (IN MEMORY)
>XML stream then needs to be ran through FOP to generate a PDF stream which
>will be sent back to the browser.  The embed sample also shows how to
>process .FO files.  This is not what I want  The ONLY file that can be
>on disk is the XSL file which contains the FO tags to apply to the XML data.

Applying XSL to your XML in memory should be fairly easy. The
transformation APIs in JAXP handle this. then just edit the servlet code to
handle something other than a file stream. I got this to work without much
problem a while ago. My code is appended below -- I think it worked with
0.17, haven't checked it in a while. It differs only slightly from the
original. The fo data comes in an HTTP parameter called "fo", though you
can change the name. It loads this all into the String called fo. Then when
it sets up the driver, instead of passing it a FileInputSource, it passes
it a StringInputSource derived from the fo String.

I dimly recollect that the Driver interface changed a lot in 0.18 so some
of these methods may now be hidden, i.e. not called directly in the
servlet, but if you manually configure your driver, changing the type of
input source you hand it should not be hard.

-- sgl

/*-- $Id: FopServlet.java,v 1.2 2001/03/03 07:06:03 kellyc Exp $ --

 
   The Apache Software License, Version 1.1
 

Copyright (C) 1999 The Apache Software Foundation. All rights reserved.

 Redistribution and use in source and binary forms, with or without modifica-
 tion, are permitted provided that the following conditions are met:

 1. Redistributions of  source code must  retain the above copyright  notice,
this list of conditions and the following disclaimer.

 2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

 3. The end-user documentation included with the redistribution, if any, must
include  the following  acknowledgment:  "This product includes  software
developed  by the  Apache Software Foundation  (http://www.apache.org/)."
Alternately, this  acknowledgment may  appear in the software itself,  if
and wherever such third-party acknowledgments normally appear.

 4. The names "Fop" and  "Apache Software Foundation"  must not be used to
endorse  or promote  products derived  from this  software without  prior
written permission. For written permission, please contact
[EMAIL PROTECTED]

 5. Products  derived from this software may not  be called "Apache", nor may
"Apache" appear  in their name,  without prior written permission  of the
Apache Software Foundation.

 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
 APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
 INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
 DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
 OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
 ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
 (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 This software  consists of voluntary contributions made  by many individuals
 on  behalf of the Apache Software  Foundation and was  originally created by
 James Tauber <[EMAIL PROTECTED]>. For more  information on the Apache
 Software Foundation, please see .

 */



// Java
import java.io.*;
import java.net.URL;
import java.util.Date;

import javax.servlet.*;
import javax.servlet.http.*;

// SAX
import org.xml.sax.XMLReader;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;


// FOP
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.configuration.Configuration;
import org.apache.fop.apps.Driver;
import org.apache.fop.apps.Version;


/**
 * Example servlet to generate a PDF from a servlet.
 * Servlet param is:
 * 
 *   fo: the path to a formatting object file to render
 * 
 *
 * Example URL:
http://servername/servlet/FopServlet?fo=/home/fop/example/readme.fo
 *
 */

public class FopStream extends HttpServlet
{
public static final String FO_REQUEST_PARAM = 

[GUMP] Build Failure - Fop

2001-07-06 Thread Sam Ruby


This email is autogenerated from the output from:



Buildfile: build.xml

init-avail:

init-filters-xalan1:

init-filters-xalan2:
 [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen

init:
 [echo] --- Fop 0.19.0-CVS [1999-2001] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 35 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources

BUILD FAILED

java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Document 
class
at org.apache.fop.tools.anttasks.Xslt.buildDocument(Unknown Source)
at org.apache.fop.tools.anttasks.Xslt.transform(Unknown Source)
at org.apache.fop.tools.anttasks.Xslt.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:124)
at org.apache.tools.ant.Target.execute(Target.java:168)
at org.apache.tools.ant.Project.runTarget(Project.java:918)
at org.apache.tools.ant.Project.executeTarget(Project.java:541)
at org.apache.tools.ant.Project.executeTargets(Project.java:515)
at org.apache.tools.ant.Main.runBuild(Main.java:422)
at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 5 seconds
loader constraints violated when linking org/w3c/dom/Document class

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




Re: Need Working Sample

2001-07-06 Thread Dave Frankson

I've been doing XML+XSL+FOP transforms in a servlet for months.  I have
a servlet that takes an xml and an xsl parameter (either a url to a file, a
url to a jsp page that dynamically generates the xml, or an ObjectID that
where the Object is taken from an Object database and transformed to xml in
memory).  It then passes it through xalan and if necessary fop and returns
either xml, html, or a pdf.

Here is some code adapted from that servlet:


String xmlData = ""; //--- This is your xml in memory
String xslData = ""; //--- Tis is your xsl in memory

StreamSource xmlSource = new StreamSource(new StringReader(xmlData));
StreamSource xslSource = new StreamSource(new StringReader(xslData));

StringWriter transformOut = new StringWriter();

StreamResult xsltOut = new StreamResult(transformOut);

 try {
  Transformer transformer = factory.newTransformer(xslSource);
  transformer.transform(xmlSource, xsltOut);
 }catch(Exception e) {System.out.println("XSLT Exception: " + e);
e.printStackTrace();}


  ByteArrayOutputStream pdfContent = new ByteArrayOutputStream();

   InputSource fopIn = new InputSource(new
StringReader(transformOut.toString()));

   response.setContentType("application/pdf");
   response.addHeader("Content-Disposition", "inline; filename=report.pdf");
   BufferedOutputStream out = new
BufferedOutputStream(response.getOutputStream());

   try {
String parserClassName = System.getProperty("org.xml.sax.parser");
if (parserClassName == null) parserClassName =
"org.apache.xerces.parsers.SAXParser";
XMLReader parser =
(XMLReader)Class.forName(parserClassName).newInstance();

parser.setFeature("http://xml.org/sax/features/namespace-prefixes";,
true);
String version = Version.getVersion();
Driver driver = new Driver();
driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer", version);
driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");

driver.addElementMapping("org.apache.fop.extensions.ExtensionElementMapping"
);
driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");

driver.addPropertyList("org.apache.fop.extensions.ExtensionPropertyListMappi
ng");

driver.setOutputStream(pdfContent);
driver.buildFOTree(parser, fopIn);
driver.format();
driver.render();
   }catch(Exception e) {System.out.println("FOP Exception: " + e);}

   byte[] pdfDoc = pdfContent.toByteArray();

   response.setContentLength( pdfDoc.length );
   out.write( pdfDoc);
  }
   out.flush();
   out.close();


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




About testing

2001-07-06 Thread Karen Lease

Hi Keiron,

It looks like you are the testing guru. Thanks for taking the initiative
on this; I agree that it's crucial.

I've finally got around to looking at this in more detail, as I'm trying
to add some good cases for tables. I have one problem and one question.

Problem:
For some reason, certainly relating to ClassLoader behavior, if I run
"build.sh test" in my xml-fop directory, the version checking code in
RunTest is finding the ./conf/config.xml file locally before it finds
the one in the test/reference/jar. The result is that it refuses the
version since it's "FOP @version@" and not "FOP 0.19.0-CVS" or whatever.
I find if I hide the conf/config.xml file, it uses the one in the jar
and everything works fine. Have you noticed this by any chance? Perhaps
it's due to a java bug - I'm using the Sun JDK 1.2.2 for Linux
(Mandrake).

Question:
I see that the XML "rendering" doesn't have lots of traits, no Area
Container positioning for example, no line-height information etc. Is it
a reasonable thing to enhance the output format to include (eventually)
all the traits which are supposed to be on areas?

Regards,
Karen

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




Re: Need Working Sample

2001-07-06 Thread Karen Lease

Hi again,

Just to make sure I wasn't talking through my hat, I tried out what I
told you to do. It works OK for me. I attached a short java file
(TestXSLT) which I tested with your xml and xsl. Here is what I used to
run it (TestXSLT.class in the local directory).

java -cp
.:build/fop.jar:lib/xerces-1.2.3.jar:lib/xalan-2.0.0.jar:lib/batik.jar
TestXSLT prueba.xml prueba.xsl

It looks like you had all the pieces, but maybe not in the right order.

If it works, I'll collect the beer next time I'm in Geneva (unless
you're in Paris (France, not Texas!) before then.

Salut,
Karen

"Wolf Gustavo (SGC-EXT)" wrote:
> 
> Hi Erik,
>  I have tried your stuff, but it still gives me the same problem i
> have since two days after I try to instantiate the parser:
> 
> javax.xml.transform.TransformerConfigurationException: Namespace not
> supported by SAXParser
> Error msg: null
> 
> At the risk of looking abusive, could someone take a look at the xml and xsl
> files (they are really short examples that work with Fop as a line command,
> and I'll invite a beer to whomever comes to Geneva (CH, not IL) to pick it
> up)?
>

import java.io.File;

import org.apache.fop.apps.InputHandler;
import org.apache.fop.apps.XSLTInputHandler;
import org.apache.fop.apps.Driver;

// SAX
import org.xml.sax.XMLReader;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;

public classTestXSLT {

public static void main(String args[]) {
if (args.length != 2) {
System.err.println("Usage: TestXSLT xmlfile xslfile");
System.exit(1);
}
try {
File xmlInputSource = new File(args[0]);
File xslInputSource = new File(args[1]);
InputHandler inputHandler = new
XSLTInputHandler(xmlInputSource,xslInputSource);
XMLReader parser = inputHandler.getParser();
parser.setFeature("http://xml.org/sax/features/namespace-prefixes";,
  true);
 
/**
* Creates the driver telling it to write the output to a file.
*/
Driver driver = new Driver();
driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer");
//  ERROR IN THE FOLLOWING LINE
driver.buildFOTree(parser,inputHandler.getInputSource());
File test = new File("test.pdf");
driver.setOutputStream(new java.io.FileOutputStream(test));
driver.format();
driver.render();
}
catch (Exception e) {
System.err.println("Caught exception: " + e);
e.printStackTrace();
}
}
}



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


Re: running from servlet, is buffering needed?

2001-07-06 Thread Chetan Vig

No, seshadri. Can't I call FOP from the servlet too. need the memory buffer for
the servlet...my reports are approx. 300-500 pages and currently I have set my
XMX to 384Mhowever, I would like to avoid doing that to my app. server.

-Chetan

Dave Frankson wrote:

> I use FOP solely from a servlet to handle web-based reporting.  Our
> company has a web-based student information system for k-12 schools.
> Currently we are using Access for reporting, but would like to switch to FO.
> We have already written everything to bulk print 3000 student report cards,
> but FOP will choke any server we have.
>
> Dave
>
> - Original Message -
> From: "Seshadri G.K." <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, July 07, 2001 1:25 AM
> Subject: running from servlet, is buffering needed?
>
> > I want to know is the memory patch really needed when fop runs from a
> > servelet. Iam sure when it is servelet invoked, the xsl-fo files are much
> > smaller, because some user is waiting to see the files on the browser,
> > unlike commandline where really big files could be used. If that is so,
> then
> > I could commit the memory patch to fop.
> >
> > seshadri
> >
> >
> >
> > -
> > 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: About testing

2001-07-06 Thread Arved Sandstrom

At 11:33 PM 7/6/01 +0200, Karen Lease wrote:
>Question:
>I see that the XML "rendering" doesn't have lots of traits, no Area
>Container positioning for example, no line-height information etc. Is it
>a reasonable thing to enhance the output format to include (eventually)
>all the traits which are supposed to be on areas?

I would support having everything. After all, I don't think it is really 
meant to be read by humans - the XML output should be post-processed. 
AntennaHouse XSLFormatter prints out practically everything.

I think we could have several levels of detail (which I think I might have 
put in there already to some degree); someone may not be interested in 
levels below regions, someone else might want down to blocks, someone else 
may want everything right down to inlines in agonizing detail.

Regards,
Arved Sandstrom

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 2429] - Incorrect handeling of fo:leader attribute leader-pattern

2001-07-06 Thread bugzilla

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

*** shadow/2429 Tue Jul  3 00:26:23 2001
--- shadow/2429.tmp.21975   Fri Jul  6 17:10:12 2001
***
*** 2,9 
  | Incorrect handeling of fo:leader attribute leader-pattern  |
  ++
  |Bug #: 2429Product: Fop |
! |   Status: NEW Version: all |
! |   Resolution:Platform: All |
  | Severity: Normal   OS/Version: Linux   |
  | Priority: Other Component: pdf renderer|
  ++
--- 2,9 
  | Incorrect handeling of fo:leader attribute leader-pattern  |
  ++
  |Bug #: 2429Product: Fop |
! |   Status: RESOLVEDVersion: all |
! |   Resolution: FIXED  Platform: All |
  | Severity: Normal   OS/Version: Linux   |
  | Priority: Other Component: pdf renderer|
  ++
***
*** 36,39 
  
  instead of
  
!3.5 Graphics ... xx
--- 36,43 
  
  instead of
  
!3.5 Graphics ... xx
! 
! --- Additional Comments From [EMAIL PROTECTED]  2001-07-06 17:10 ---
! This is probably the same bug as the one I reported and supplied a patch for
! in the fop-dev mailing list a few days ago

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




[Bug 2489] New: - leader CID font bug

2001-07-06 Thread bugzilla

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

*** shadow/2489 Fri Jul  6 17:15:28 2001
--- shadow/2489.tmp.22002   Fri Jul  6 17:15:29 2001
***
*** 0 
--- 1,85 
+ ++
+ | leader CID font bug|
+ ++
+ |Bug #: 2489Product: Fop |
+ |   Status: NEW Version: all |
+ |   Resolution:Platform: All |
+ | Severity: MajorOS/Version: Other   |
+ | Priority: Other Component: pdf renderer|
+ ++
+ |  Assigned To: [EMAIL PROTECTED]   |
+ |  Reported By: [EMAIL PROTECTED] |
+ |  CC list: Cc:  |
+ ++
+ |  URL:  |
+ ++
+ |  DESCRIPTION   |
+ If the dots are typeset with a CID font, the result is unpredictable. Here is a
+ patch, which I posted to fop-dev earlier but nobody seems to want to commit 
+ it to CVS after two days...
+ -
+ Apply this patch to:
+ xml-fop/src/org/apache/fop/layout/LineArea.java
+ 
+ A bug was introduced between version 1.42 and 1.43 of LineArea 
+ which uses a lot of mapChar to cope with bug 1618 (CVS log has
+ a typo error instead to "1681"), and forgot to change the
+ leader calculation.
+ 
+ This bug should have caused FOP to crash with any XSL:FO input 
+ that has a leader with dots or space with non-pdf-standard 
+ fonts. I wonder why nobody spotted it in release 0.19? My 
+ last CVS build was May 16 and it worked fine - the fatal bug 
+ was introduced on 12 June and went into release 0.19 and 
+ went unreported for nearly a month... 
+ 
+ Somebody please patch this into the CVS tree?
+ 
+ =
+ *** LineArea.java-bad Tue Jun 12 12:37:42 2001
+ --- LineArea.java Wed Jul  4 00:44:44 2001
+ ***
+ *** 751,769 
+  * creates a leader as String out of the given char and the leader 
+ length
+  * and wraps it in an InlineArea which is returned
+  */
+ ! private InlineArea buildSimpleLeader(int charNumber, int leaderLength) {
+ ! int width = this.currentFontState.width(charNumber);
+   if (width == 0) {
+ - char c = (char) charNumber;
+   MessageHandler.errorln("char " + c + " has width 0. 
+ Using width 100 instead.");
+   width = 100;
+   }
+   int factor = (int) Math.floor (leaderLength /
+  width);
+   char [] leaderChars = new char [factor];
+ - char fillChar = (char) charNumber;
+   for (int i = 0; i < factor; i ++) {
+ ! leaderChars[i] = fillChar;
+   }
+   WordArea leaderPatternArea =
+ new WordArea(currentFontState, this.red, this.green,
+ --- 751,767 
+  * creates a leader as String out of the given char and the leader 
+ length
+  * and wraps it in an InlineArea which is returned
+  */
+ ! private InlineArea buildSimpleLeader(char c, int leaderLength) {
+ ! int width = this.currentFontState.width
+ (currentFontState.mapChar(c));
+   if (width == 0) {
+   MessageHandler.errorln("char " + c + " has width 0. 
+ Using width 100 instead.");
+   width = 100;
+   }
+   int factor = (int) Math.floor (leaderLength /
+  width);
+   char [] leaderChars = new char [factor];
+   for (int i = 0; i < factor; i ++) {
+ ! leaderChars[i] = c;
+   }
+   WordArea leaderPatternArea =
+ new WordArea(currentFontState, this.red, this.green,
+ ==

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




[Bug 2491] New: - footnote can't fit remaining space and crash

2001-07-06 Thread bugzilla

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

*** shadow/2491 Fri Jul  6 17:28:08 2001
--- shadow/2491.tmp.22037   Fri Jul  6 17:28:08 2001
***
*** 0 
--- 1,74 
+ ++
+ | footnote can't fit remaining space and crash   |
+ ++
+ |Bug #: 2491Product: Fop |
+ |   Status: NEW Version: all |
+ |   Resolution:Platform: All |
+ | Severity: Critical OS/Version: Other   |
+ | Priority: Other Component: pdf renderer|
+ ++
+ |  Assigned To: [EMAIL PROTECTED]   |
+ |  Reported By: [EMAIL PROTECTED] |
+ |  CC list: Cc:  |
+ ++
+ |  URL:  |
+ ++
+ |  DESCRIPTION   |
+ If a paragraph has a few foot notes towards the bottom of the page, and the
+ footnote body cannot fit into the remaining page, FOP would crash. This patch 
+ doesn't solve the problem, but it simply trap the error and skip the footnote 
+ body and output a message after the page number so that the user still get a 
+ pdf file to visually examine where the missing footnote might be and maybe
+ rearrange his text to fit. I think this is better than FOP just dying without
+ generating a pdf file. 
+ 
+ Some better solution may be:
+ (1) properly move the footnote to next page (i.e. say, last line of
+ page 1 has a footnote refering to footnote 1, but the footnote body itself
+ only appears in bottom of page 2).
+ (2) temperarily lengthen the page content size, get the footnote overhanging 
+ below the nominal bottom of page and output a message to tell user to rearrange 
+ his text. 
+  
+ I had a look around Footnote.java and FootnoteBody.java for a few hours but 
+ neither look too easy, so I gave up. I think ideally the behaviour should
+ be similar to latex i.e. fit as much of footnote 1 into bottom of page 1,
+ and output the rest to bottom of page two, but since FOP doesn'timplement 
+ xsl-footnote-separator yet, this may be a bit confusing visually.
+ 
+ 
+ *** /home/LEUNGH2/xml-fop/src/org/apache/fop/fo/flow/FootnoteBody.java-org
+   Sun Mar  4 21:34:52 2001
+ --- /home/LEUNGH2/xml-fop/src/org/apache/fop/fo/flow/FootnoteBody.javaSat 
+ Jul  7 00:40:46 2001
+ ***
+ *** 108,114 
+ for ( int i = this.marker; i < numChildren; i++ ) {
+   FONode fo = (FONode) children.elementAt(i);
+   Status status;
+ ! if ( (status = fo.layout(blockArea)).isIncomplete() ) {
+ this.resetMarker();
+ return status;
+   }
+ --- 108,125 
+ for ( int i = this.marker; i < numChildren; i++ ) {
+   FONode fo = (FONode) children.elementAt(i);
+   Status status;
+ !   try {
+ ! status = fo.layout(blockArea); 
+ !   } catch (NullPointerException e) {
+ ! System.out.println("");
+ ! System.out.println("***A paragraph near the bottom of the page has a 
+ footnote");
+ ! System.out.println("***which is too big to fit into the remaining");
+ ! System.out.println("***available space. The footnote is being 
+ skipped.");
+ ! System.out.println("***Please rewrite the paragraph or the footnote 
+ body.");
+ !   this.resetMarker();
+ !   return new Status(Status.OK);
+ !   };
+ ! if ( status.isIncomplete() ) {
+ this.resetMarker();
+ return status;
+   }

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




Re: overflow-paginate

2001-07-06 Thread Arved Sandstrom

At 08:19 AM 7/6/01 -0600, Robyn MacDuff wrote:
>I am looking for help with overflow-paginate function of XSL. I have data
>elements that overflow the block sizes and overflow-paginate="8.00in"
>doesn't seem to be workning for me.

Without getting into a discussion of what FOP supports in this regard, can I 
clarify that you are trying to use the "overflow" property on one region or 
other (possibly fo:region-body?), and you also want to set the "media-usage" 
property on fo:root to "paginate"?

Neither one of these properties supports a length specification in any case.

Elucidation welcome. :-)

Regards,
Arved Sandstrom

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]




RE: Font Metric file from ttf file??

2001-07-06 Thread rajeev nair

hi Mori,
from where i get batik.jar and xml.jar.Actually 
i downloaded xml-batik and built that.But in the 
/lib/build  directory i couldn't see batik.jar.
expecting help.

regards
rajiv

--- "Mori, Donatella (AFIS)" <[EMAIL PROTECTED]>
wrote:
> hello Rajiv,
> 
> I run my metricw.bat from MS-DOS window. My
> directory is configured in the
> following way:
> 
> C:\fop9
> 
> where I have the following files:
> 
> metricw.bat
> fop.jar
> ant.jar
> batik.jar
> jimi-1.0.jar
> w3c.jar
> xalan-2.0.0.jar
> xalanj1compact.jar
> xerces.jar
> xerces-1.2.3.jar
> xml.jar
> 
> (I'm not sure whether they are all required, however
> ...)
> 
> then I have the subdirectory
> 
> C:\fop9\conf
> 
> that contains the file userconfig.xml 
> 
> When I submit "C:\fop9 > metricw" it works and gives
> to me the following
> message:
> 
> C:\fop9>metricw
> TTF Reader v1.1.1
> 
> Reading C:\WINNT\Fonts\tradbdo.ttf...
> 
> Number of glyphs in font: 530
> Creating xml font file...
> 
> Creating CID encoded metrics
> Writing xml font file TradArabicBold.xml...
> 
> ** Note: This font contains license retrictions for
>  embedding. This font shouldn't be embedded.
> 
> C:\fop9>
> 
> My JVM version is jdk1.2.2.
> 
> 
> regards,
> Donatella
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: rajeev nair [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 06, 2001 12:18 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Font Metric file from ttf file??
> 
> 
> hello mori,
> i couldn't understand which jar file u r saying
> about.I tried by including the entire jar files in
> the
> lib directory of fop download and also alone with
> fop.jar,in which the required TTFReader class is(I
> found the class by extracting fop.jar).
> now what else i do.please take interest here.
> regards
> rajiv
> --- "Mori, Donatella (AFIS)"
> <[EMAIL PROTECTED]>
> wrote:
> > Rajiv,
> > Please try with the following bat file after
> > including the required jar file
> > in the FOP running directory.
> > 
> > -Original Message-
> > From: rajeev nair [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 06, 2001 9:40 AM
> > To: [EMAIL PROTECTED]
> > Subject: Font Metric file from ttf file??
> > 
> > 
> > hello
> > i have the ttf file and was trying to make
> > fontmetric 
> > file using TTFReader class which is in fop.jar
> > file.I
> > was trying with 
> > 
> > java -cp fop.jar java
> > org.apache.fop.fonts.apps.TTFReader
> > C:\fonts\SHIVN___.ttf C:\fonts\SHIVN___.ttf
> > shiva.xml
> > 
> > but error no class found is obtaining.But i can
> see
> > the
> > TTFReader class in fop.jar.what is happening wrong
> > with me.
> > help expected.
> > regards
> > rajiv
> > 
> > --- Jeremias Maerki <[EMAIL PROTECTED]>
> > wrote:
> > > > how can i generate font metric file from pfb
> > fies
> > > > which comes with font files.I don't have pfm
> > > files.I
> > > > read that The PFMReader tool does not yet
> > > interpret
> > > > PFB files.Please help me.
> > > 
> > > The PFM is currently the only way. If you have a
> > PFA
> > > (which is in a text
> > > format) you can quite easily construct the XML
> > font
> > > metric file by hand
> > > if you bother to consult the Adobe manuals for
> > > Postscript Type 1 fonts.
> > > But with only a PFB you won't have much luck, I
> > > guess. Try to get hold
> > > of the corresponding PFM.
> > > 
> > > 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]
> > 
> > 
> > 
> > 
> 
> > ATTACHMENT part 2 application/octet-stream
> name=metricw.bat
> >
>
-
> > 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]
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 
=== message truncated ===