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

Re: XSLT 1.0 support in browsers, as of June 2008

Subject: Re: XSLT 1.0 support in browsers, as of June 2008
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 18 Jun 2008 16:21:00 +0100
Re:  XSLT 1.0 support in browsers
>> <xsl:if test="not(ancestor::ed:del) and not(//xref[@target=$anchor])">
>>
>> ...very much :0)
>
> The only way to avoid the "//" above would be to use xsl:key, which didn't
> seem necessary so far because Saxon and MSXML seem to perform well without.
> I'll give that a try when I have time.

I would definitely use a key... and you seem to check for the
existence of elements a lot doing things like:

<xsl:if test="//elem[cond]">

so you should be able to improve performance if you key all elements
by name and use that instead eg:

<xsl:key name="elems-by-name" match="*" use="name()"/>

with

<xsl:if test="key('elems-by-name', 'elem')[cond]">

Basically just go through the code replacing // with a key and where
possible don't use the ancestor axis... performance tuning step 1 :)

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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-2011 All Rights Reserved.