Re: [xsl] The benefits of exact selection

Subject: Re: [xsl] The benefits of exact selection
From: Vyacheslav Sedov <vyacheslav.sedov@xxxxxxxxx>
Date: Fri, 6 Nov 2009 19:06:30 +0300
<xsl:value-of select="/document/colors[1050]/color[140]/dec/@num"/>
is not same as <xsl:value-of select="//@num"/>

you can`t compare this two XPath`s alone from XML - it is same as
compare "soft with warm" :)

can bet your students high esimate comparing push and pool scheme for
XSLT (also known as data-driven and template-driven models)


2009/11/6 Michael Kay <mike@xxxxxxxxxxxx>:
>>
>> Using Saxon PE from inside Oxygen, I transformed 20 times for each.
>> Here is the average time as reported by Oxygen:
>>
>> 1) Exact selection: 4.1s
>> 2) Wildcard selection: 5.0s
>>
>> That is a difference. But it is also fair to say that for
>> most transformations, on a small dataset, it will be
>> impossible to measure a difference of any importance.
>>
>
> Does your transformation time include document parsing/building time? For a
> small task like this, the parsing time will completely swamp the
> transformation time. If the parsing time is 4.0s, then your figure shows
the
> transformation time is different by a factor of 10.
>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay

Current Thread