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

RE: Omnimark vs. XSL (Saxon) Challenge

Subject: RE: Omnimark vs. XSL (Saxon) Challenge
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 16 Mar 2004 23:45:30 -0000
RE:  Omnimark vs. XSL (Saxon) Challenge
# It's a big program and I have a tendancy to think it's going 
# in an innefficient direction mainly by having all templates 
# except root be named and called explicitly with a whole lot 
# of variables being passed from template to template.  In my 
# limited experience, these slow down processing significantly.

I don't think there's any reason why calling named templates should be
inefficient. The thing to look at is the algorithmic complexity.
 
#  Someday I'll look into engine source and find out more specifically.
# Another suspicious piece that I've noticed is the calls like:
# 
# <xsl:variable name="random-nodes-r" select="document('')//*" 
# /> <xsl:variable name="random-nodes-c" select="document('')//*" />
# 
# Which, (correct me if I'm wrong here), are making two extra 
# copies of the entire document in a variable? 

No, only one extra copy. Calling document() multiple times with the same URI
will return the document from a local cache.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.