[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Push Processing


Subject: RE: [xsl] Push Processing
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 02 Mar 2009 11:33:44 -0500

At 2009-03-02 11:30 -0500, Scott, Christopher wrote:
Also, is there any real advantage to specifying as="element()" other
then readability/documentation?

Opportunities for optimization by the processor.


In my XSLStyle XSLT documentation methodology I mandate this on all global variables and parameters. It is also just as helpful on local variables, but I'm less rigorous about that.

You've recently discussed the
advantages of doing this for non-element data types (e.g. numeric
functions).  Are there similar advantages for element()?

For all variables the more the processor knows about how the variable will be used, the better.


I hope this helps.

. . . . . . . Ken

--
XQuery/XSLT training in Prague, CZ 2009-03 http://www.xmlprague.cz
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


Current Thread
Keywords