xsl-list
[Top] [All Lists]

RE: [xsl] Push Processing

2009-03-02 11:35:50
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(_at_)CraneSoftwrights(_dot_)com
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


--~------------------------------------------------------------------
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>