Re: [xsl] XSLT and XML in the same document

Subject: Re: [xsl] XSLT and XML in the same document
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 28 May 2007 00:07:32 +0100
apart from the http get overhead using document('') of course means that the
xsl bits of the stylesheet get parsed and turned into nodes twice as
well. Whether or not that matters depends on the size of the stylesheet,
but once they get up to a few tens of thousands of lines of xsl, you
don't really want to parse it all twice just to include a 6 line xml
configuration block... document('') is mainly a workaround for
xsl:variables not making node sets, in situations where xx:node-set
isn't availaable (or you just want to avoid extensions for other
reasons) I wouldn't expect to see it used much at all in xslt2 for
example.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread