|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: slow xsltproc XInclude processing w/complex docume
Ill give you a quick hint to help clean up your process.. I wish I had
time to look deeper into this for you but time is not something I have a
lot of at the moment... None the less the first thing I noticed was the
simple fact that you are running a for-each loop, applying each result
element from the XPath of the select attribute of your for each loop to
the apply-templates which is the built in mechanism for recursion in
XSLT... so to simplify you are going through the "for-each" process
twice. While I am unsure as to the exact process implemented by
xsltproc (not sure if it will notice the obvious doule up and ignore the
for-each choosing instead to apply the result of the xpath expression
directly to the apply-templates process) I can tell you there is a
possibility that you are processing through your massive XML file which
is implied by simply using <xsl:apply-templates
select="document(@href)"/>... and now that I just saw what you are
using as your select attribute value I can definitely see why the
compiler may not optimize ;)
I would definitely pull out that for-each and see how much that helps... As I'm looking further down I can definitely see some other areas that could be optimized... I wish I had the time to help further but I gotta get back to coding myself... None the less there are plenty of others here that will be more than happy to help you further... Best of luck! <M:D/> :: Saxon.NET is now available to early beta participants! Visit http://www.x2x2x.org/x2x2x/home to sign up :: Paul DuBois wrote: I've been running some tests on a document that includes nested
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








