xsl-list
[Top] [All Lists]

RE: [xsl] XPath "//", speed, and Saxon

2008-10-31 13:06:38

Out of interest, how does it work with the following:

/descendant::*[(_at_)foo = 'bar']

That's going to take substantially longer than /descendant::foo. How much
longer, I don't know.

Also, what happens with regard to wildcards in template matches:

<xsl:template match="*[(_at_)foo = 'bar']">

<xsl:template match="*[(_at_)foo = 'something else']

In Saxon, template rules whose match pattern identifies an explicit element
name will always be significantly more efficient than those that don't. (A
really bad case with Saxon is to write a stylesheet with 1000 template rules
all of the form match="*[..some predicate..]")

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>