[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
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@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> </body></html> real 0m7.639s user 0m7.230s sys 0m0.160s Regards, 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|