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

Subject: Re: [xsl] XSLT and XML in the same document
From: "M. David Peterson" <m.david@xxxxxxxxxxxxx>
Date: Sun, 27 May 2007 17:38:08 -0600
On Sun, 27 May 2007 17:29:21 -0600, Michael Kay <mike@xxxxxxxxxxxx> wrote:

(In Saxon, the whitespace nodes, comments and processing instructions in the
stylesheet have been discarded long before the compiler could notice that
there's a call on document('') which requires them to be retained.)

Oh, right... That makes complete sense. Thanks for the clarification!


So with this in mind, then dependent upon how big the transformation file is and how far away it is away from the machine doing the processing, the cost of using document for introspection could be quite signficant!

--
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155


Current Thread