Thanks, especially for pointing to xsltproc.
Even with xsltproc naxos2.xsl (from my previous posting) is not being able
to apply naxos.xsl, but naxos2.xsl works fine for ab3.xml below.
(naxos2.xsl takes the url "ab2.xml" from ab3.xml, and executes doc.xsl on
document('ab2.xml') then)
$ cat ab3.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xml" href="doc.xsl"?>
<url>ab2.xml</url>
$
$ cat ab2.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xml" href="double2.xsl"?>
<a>1<b>2</b>3</a>
$
$ cat doc.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
<xsl:template match="/">
<xsl:value-of select="document(.)"/>
</xsl:template>
</xsl:stylesheet>
$
$ xsltproc ab3.xml ../naxos.xsl
<?xml version="1.0"?>
123
$
$ xsltproc ab4.xml ../naxos2.xsl
Evaluating variable {}function-namespace-prefix
Evaluating variable {}function-documents
Evaluating variable {}grammar-namespace-prefix
Evaluating variable {}grammar-document
Evaluating variable {}collation
Circular definition of global variables: {}use-stylesheet::id1638177;
$
Mit besten Gruessen / Best wishes,
Hermann Stamm-Wilbrandt
Level 3 support for XML Compiler team and Fixpack team lead
WebSphere DataPower SOA Appliances
https://www.ibm.com/developerworks/mydeveloperworks/blogs/HermannSW/
https://twitter.com/#!/HermannSW/
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
From: "Tony Graham" <tgraham(_at_)mentea(_dot_)net>
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com,
Date: 05/02/2012 10:40 AM
Subject: Re: [xsl] Why are there no XSLT processors implemented in XSLT?
On Tue, May 1, 2012 5:05 pm, Hermann Stamm-Wilbrandt wrote:
...
naxos sample execution:
$ time java com.icl.saxon.StyleSheet user.xml ../naxos.xsl
...
real 0m6.360s
user 0m11.512s
sys 0m0.157s
You will get less effect from the JVM startup time if you use '-9' to run
the transform multiple times:
$ time saxon-xslt user.xml ../naxos.xsl
...
real 0m13.283s
user 0m15.930s
sys 0m0.520s
$ time saxon-xslt -9 user.xml ../naxos.xsl
...
real 0m40.619s
user 0m44.580s
sys 0m0.590s
$
And Naxos is processor independent:
$ time xsltproc ../naxos.xsl user.xml
<html><head><title>Spam for Schmidt</title></head><body>
<p>Dear Frau Schmidt,</p>
<p>We would like to invite you,
as a resident of Germany,
to review our new software package.</p>
<p>Thank you.</p>
<p>Yours sincerely,</p>
</body></html>
real 0m7.639s
user 0m7.230s
sys 0m0.160s
Regards,
Tony Graham tgraham(_at_)mentea(_dot_)net
Consultant http://www.mentea.net
Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
XML, XSL-FO and XSLT consulting, training and programming
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--