<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(_at_)saxonica(_dot_)com>:
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
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--