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

Re: XPath shorthand

Subject: Re: XPath shorthand
From: Michael Müller-Hillebrand <mmh@xxxxxxxxx>
Date: Wed, 22 Aug 2012 15:54:41 +0200
Re:  XPath shorthand
Am 22.08.2012 um 15:22 schrieb Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx>:

>> following-sibling::*[local-name() = $names]
>>
>
> Yes I didn't think of this but there are two things.
>
> This won't work in a template match on XSLT 1.0 and it is hiding
> multiple comparisons under the innocent looking equality general
> comparison which may bite on large volumes.

Well, that the "innocent looking equality comparison" has the meaning of
"exists in" in XSLT 2 and is IMO one of the first things you have to learn
when switching from XSLT 1.0. Whoever takes 2.0 serious b compared to just
changing the version attribute of the xsl:stylesheet b will know about
that.

Also, I believe that any decent XSL processor will create a hash on $names and
therefore deliver about the same performance compared to xsl:key.

- Michael MH

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.