At 2008-08-02 20:30 +0530, Mukul Gandhi wrote:
But I am only concerned, that if stylesheet is quite large, then to
access the contents of a variable (i.e., this one, <xsl:variable
name="x-values">), we are asking processor to build a large tree (an,
additional one) in memory, which might cause some performance
concerns.
Which is why I offered "ken2.xsl" as an option which reads only a
dozen lines of XML and would build a small tree:
At 2008-08-02 05:43 -0400, I wrote:
I grant, though, that if your stylesheet is large then putting this
into a small included or imported fragment would keep any overhead
of building the tree small.
Remember that document('') reads only the XML fragment that has the
call to the function ... it is not reading in the entire stylesheet
import tree. There is no access in this way to stylesheet values
outside of the fragment.
. . . . . . . . . . . . Ken
--
Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds: publicly-available developer resources and training
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
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>
--~--