On Fri, 2008-07-25 at 16:06 +0100, Dave Pawson wrote:
> 2008/7/25 Ian Shields <[EMAIL PROTECTED]>:
> 
> > Frankly, I like having the Java XSLT processors. I haven't looked
> > closely at adding extensions to libxslt, other than a quick scan over
> > http://xmlsoft.org/XSLT/extensions.html.
> 
> Daniel isn't up for moving to XSLT 2.0 :-)
> 
> 
> > Secondly, I've used libxslt, both as part of XML Copy Editor and
> > stand-alone to transform XML using the IBM developerWorks XML Author
> > package (see http://www.ibm.com/developerworks/library/i-dwauthors/) and
> > it is way slower than Xalan (or MSXML). I haven't researched whether
> > this is some peculiarity of the dW stylesheet, but we're talking many
> > minutes vs a few seconds here.
> 
> That flies in the face of most timing comparisons I've seen for 1.0
> 
> Have you tried libxslt from the command line for your timings?

The timings I quoted were run from the command line using the xsltproc
command, which is the command line tool per http://xmlsoft.org/XSLT/ and
IBM Java 1.5 using java org.apache.xalan.xslt.Process, again from the
command line. These were the results on my 64-bit Fedora 9 system.

$ time /opt/ibm/java2-i386-50/bin/java org.apache.xalan.xslt.Process
-IN index.xml -XSL ../xsl/5.10/dw-document-html-5.10.xsl -OUT
index1.html

real    0m4.034s
user    0m3.580s
sys     0m0.423s
$ time xsltproc -o index2.html
--timing ../xsl/5.10/dw-document-html-5.10.xsl index.xml 
Parsing stylesheet ../xsl/5.10/dw-document-html-5.10.xsl took 0 ms
Parsing document index.xml took 1 ms
Running stylesheet and saving result took 23 ms

real    4m26.765s
user    4m22.286s
sys     0m0.160s

If you want to repeat, go to
http://www.ibm.com/developerworks/library/i-dwauthors/ and download the
author package from the download section of the article. Unpack it on
your local filesystem and you'll get a developerworks folder and some
subfolders. Navigate to this folder and run the new-article.vbs
(Windows) or new-article.sh (Linux) script to create a sample article
template. If you take the default it will be created in a folder called
my-article inside the developerworks folder. I navigated to the
my-article folder and ran the above commands to get the timings. Note
that the dw-landing-generic-5.10.xsl file incorrectly specifies version
2.0. I've reported this problem to our stylesheet developers and I
changed this to 1.0 for the above runs, otherwise xsltproc generates a
warning message.

-- 
Ian Shields <[EMAIL PROTECTED]>


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

Reply via email to