[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Why are there no XSLT processors implemented in XS

Subject: Re: Why are there no XSLT processors implemented in XSLT?
From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx>
Date: Wed, 2 May 2012 15:34:56 +0200
Re:  Why are there no XSLT processors implemented in XS
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"?>
$ cat ab2.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xml" href="double2.xsl"?>
$ cat doc.xsl
<xsl:stylesheet version="1.0"
  <xsl:template match="/">
    <xsl:value-of select="document(.)"/>

$ xsltproc ab3.xml ../naxos.xsl
<?xml version="1.0"?>
$ 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
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@xxxxxxxxxx>                                                                                              
  To:         xsl-list@xxxxxxxxxxxxxxxxxxxxxx,                                                                                                
  Date:       05/02/2012 10:40 AM                                                                                                             
  Subject:    Re:  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>
real		 0m7.639s
user		 0m7.230s
sys		 0m0.160s


Tony Graham                                   tgraham@xxxxxxxxxx
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL-FO and XSLT consulting, training and programming

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.