RE: FOP performance vs RenderX performance

2002-04-03 Thread Alastair Growcott
Last time I looked at RenderX, I think I saw something that stated or
implied that RenderX used FOP or was based on it, hence RenderX is
essentially a layer on top of FOP and so will be slower.

It might be worth checking.


-Original Message-
From: Irina Grigorieva [mailto:[EMAIL PROTECTED]
Sent: 03 April 2002 14:11
To: [EMAIL PROTECTED]
Subject: FOP performance vs RenderX performance


Hi!

My apologies if this question has already been discussed or does not fit
the forum topic.
I try to compare performance of FOP and RenderX, but all I have found
out is that FOP formats much faster than RenderX (evaluation version).
Unfortunately, RenderX evaluation accepts input/produces output only in
file format (filenames as input) and there is no capability to count the
actual time of rendering, but the time values is very frustrating.:-(
However, I expected RenderX as a commercial product to be more advanced
in the speed of processing.
Have I missed something important?

Can anyone help me? Thanks in advance.

BR, Irina.




RE: XML parsing

2002-03-26 Thread Alastair Growcott
> on at the moment and one can create new calls to programs to
> open a file (tools, folder options, file types tab). Suppose
> you simply define an option to "view as PDF" or something?
> You can specify a call to fop (with a call to the style sheet
> that will filter out what exactly to do with the style sheet
> called in the XML document) there and see what happens.


That is basically what I am doing at the moment, but there are two
problems. Firstly the script to view as PDF needs to know the exact
stylesheet to use. When opening XML in IE, IE reads the stylesheet to
use from the XML file, so the whole thing is simplified. If FOP could
read the stylesheet to use in the same way, then the whole thing would
be simple. At the moment, to read my XML defined in my CCR DTD, I use
ccr_fo.xsl, and I have to run a specific script to specify that
stylesheet. To run that specific script I need to use a different file
extension. Hence for each DTD you need a different file extension, which
basically is the opposite of the purposes of XML being a meta data
language.

The second problem is that when using a different extension with an
"View as PDF", I cannot find a way to have FOP pass the data directly to
PDF. This means that my script consists of two steps - Use FOP to
compile to PDF, and then run Acrobat Reader to view the interim file. At
the end of the process the interim file is still lurking around. Plus
running a script opens a DOS prompt window that looks unnecessary. Since
IE can use Acrobat Reader as a plug-in, it would be nice if we could
display in IE as a PDF file without having any other windows
mysteriously (to a user) appearing.

I like your idea to have one stylesheet that converts to either PDF or
HTML. Could you give me some simple code that detects a parameter and
either does one thing or another. One day IE will no doubt display XSL
FO, and it won't be needed :)

Lastly, I see that Acrobat Reader can run plug-ins. It would be nice to
open the XML file directly to Acrobat Reader, which detects that it is
an XML file (AR already has some XML functionality relating to forms,
but I have no idea what, how, when, or where), and pre-processes it
using FOP and the relevant style sheet. Anyone have any idea how to
write Acrobat Reader plug-ins?




RE: XML parsing

2002-03-26 Thread Alastair Growcott
What I am currently looking at is to specify the HTML stylesheet in the
header so that it can be quick-viewed simply by users (with typical user
know-how - ie none) double-clicking the icon in explorer. I am then
defining a custom file type and changing the XML file extension such
that a script is run which in turn runs FOP. This thus gives me two view
output possibilities.

What I would like is to use the stylesheet specification that currently
transforms to HTML to specify some sort of (java)script file that will
run FOP.

I never, ever said I wanted to use the HTML transform stylesheet with
FOP. I am not that stupid. However if FOP parsed the line that specified
a stylesheet, and automatically pulled it in, so that the -xsl command
line option was not needed, that would simplify the processing of XML
files to PDF using FOP! And OF COURSE the stylesheet specified for this
usage would be an FO transform stylesheet!"


> -Original Message-
> From: Michiel Verhoef [mailto:[EMAIL PROTECTED]
> Sent: 26 March 2002 12:50
> To: '[EMAIL PROTECTED]'
> Subject: RE: XML parsing
>
>
> Hi,
>
> HTML does not nearly have the kind of formatting necessary
> for proper formatting
> for paper that to me the use of such a style sheet (a
> tranfsormation to
> HTML)
> sounds not very useful. Most HTML formatting does not match
> the formatting tags used in fo (for example tables) so the
> result of the transformation (such as an HTML table or
> headings) will not be recognised bij fop.
>
> If you would like to include standard style properties or
> even templates that you want to share from one source you can
> include such a file in your XSL file that you use for a
> translation to fo.
>
> A css kind-of style that can be used for both a tranformation
> to HTML and to fo would be nice though.
>
> Regards,
>
>
> Michiel
>
>
> $ -Original Message-
> $ From: Alastair Growcott [mailto:[EMAIL PROTECTED]
> $ Sent: dinsdag 26 maart 2002 13:38
> $ To: [EMAIL PROTECTED]
> $ Subject: RE: XML parsing
> $
> $
> $ My XML file looks like:
> $
> $ 
> $  href="file:///D:/XML/ccr.xsl"?> $ ... $
> $
> $ This means that when I double click it, IE6 automatically
> displays it $ correctly because ccr.xls converts the XML
> contents to HTML/CSS. Very $ nice and useful. $
> $
> $
> $ > -Original Message-
> $ > From: Michiel Verhoef [mailto:[EMAIL PROTECTED]
> $ > Sent: 26 March 2002 12:14
> $ > To: '[EMAIL PROTECTED]'
> $ > Subject: RE: XML parsing
> $ >
> $ >
> $ > Does this imply that all your XML files have a style
> sheet included? $ > $ > Because AFAIK this is not
> mandatory/common practice so to $ > speak of _the_ stylesheet
> included in the XML file is $ > probably not enough to
> explain what exactly you are referring to. $ > $ > Do you
> mean if an XML file has an internal style (probably $ > XSL,
> or CSS?) this style sheet will be processed? That would $ >
> be an interesting question.. $ > $ > Michiel $ > $ > $
> -Original Message- $ > $ From: Alastair Growcott
> [mailto:[EMAIL PROTECTED]
> $ > $ Sent: dinsdag
> 26 maart 2002 13:12
> $ > $ To: [EMAIL PROTECTED]
> $ > $ Subject: XML parsing
> $ > $
> $ > $
> $ > $ Any chance that FOP will ever use the stylesheet
> specified $ > in the XML $ file to peform the XSLT? $ $ > $ $
> > $ $ > $
> $
>




RE: XML parsing

2002-03-26 Thread Alastair Growcott
My XML file looks like:



...


This means that when I double click it, IE6 automatically displays it
correctly because ccr.xls converts the XML contents to HTML/CSS. Very
nice and useful.



> -Original Message-
> From: Michiel Verhoef [mailto:[EMAIL PROTECTED]
> Sent: 26 March 2002 12:14
> To: '[EMAIL PROTECTED]'
> Subject: RE: XML parsing
>
>
> Does this imply that all your XML files have a style sheet included?
>
> Because AFAIK this is not mandatory/common practice so to
> speak of _the_ stylesheet included in the XML file is
> probably not enough to explain what exactly you are referring to.
>
> Do you mean if an XML file has an internal style (probably
> XSL, or CSS?) this style sheet will be processed? That would
> be an interesting question..
>
> Michiel
>
> $ -Original Message-
> $ From: Alastair Growcott [mailto:[EMAIL PROTECTED]
> $ Sent: dinsdag 26 maart 2002 13:12
> $ To: [EMAIL PROTECTED]
> $ Subject: XML parsing
> $
> $
> $ Any chance that FOP will ever use the stylesheet specified
> in the XML $ file to peform the XSLT? $
> $
> $
>




XML parsing

2002-03-26 Thread Alastair Growcott
Any chance that FOP will ever use the stylesheet specified in the XML
file to peform the XSLT?





Let's get bold.

2002-03-26 Thread Alastair Growcott
The XML line



tells IE 6.0 to run the XSL file D:/XML/ccr_fo.xsl on the current XML
file and display the output (we are talking pure client-side here).

Is there a line that could be added to an XML file that would trigger a
piece of javascript or some sort of piece of java code? You can tell I'm
not a java developer. For example, maybe if the file type was changed to
e.g. "bin/java" or something. The java script could then act as a
wrapper for the entire FOP process of running the stylesheet and
converting to PDF.

I know this idea may be a bit ahead of its time, but wouldn't it be
nice...

If I find anything on this topic, do any of you want to know about it?





RE: Page sequence error

2002-03-26 Thread Alastair Growcott
Thanks.

They need to update "xslfoRef.pdf" in the FOP distribution.


> From: Guillaume Mathe [mailto:[EMAIL PROTECTED]
>
> FOP conforms to the latest specs - thus your 'master-name' in
> 'page-sequence' should be replaced with 'master-reference'.
> This holds true for other objects as
> well, take a look at FOP release notes:
> http://xml.apache.org/fop/relnotes.html





Page sequence error

2002-03-26 Thread Alastair Growcott
When running FOP on my XML document via XSL, I get the following error:

[ERROR]: org.apache.fop.apps.FOPException: 'master-reference' for
'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'

which is odd since according to all the documentation I can find, there
is no master-reference property for a page-sequence object. The
master-name property is equal to the master-name specified when I
defined my simple-page-master object.

My XSL looks like:


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


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

  

  



  

  

  

  





  


Site Installation and Commissioning Test Report



  
  
  
  
  
  

  


  

Site ID:

  
  



  
  

Job number:

  
  



  
  

Site type:

  
  



  


  

  







RE: Win32

2002-03-22 Thread Alastair Growcott
One teeny little problem - first the download is 12Mb, and secondly all
the download sites are in the US while I am in the UK!



> -Original Message-
> From: [EMAIL PROTECTED]
>
> I was in the same situation you are about a week ago.  You
> can download the Java Runtime environment at the following
> link. (You want the JRE version as opposed to the SDK).  It's
> pretty easy to install, and then the FOP.BAT command from the
> FOP download invokes it without further intervention.  I
> think you may have to restart your PC first, but that's it.
>
> http://java.sun.com/j2se/1.4/download.html






Win32

2002-03-22 Thread Alastair Growcott
Hi,

I am a sad person who does not have Java on my machine, or any idea how
to use it even if I did get my hands on a copy (I actually have a very
nice Java developer environment with lots of help files on a CD-ROM, but
not with me for another month or so).

Hence although I have downloaded the distribution release of FOP
(including all the nice help files and read-me files), I can't really
use it.

Is there anyone out there who can give me a nice easy to use Win32
executable built from a reasonably recent release of the FOP Java code.
I would very appreciative. But probably not in a fiscal manner :)

Alastair Growcott.