RE: [xml-dev] XSLT with DOM or SAX ?

From
Michael Kay <>
To
'Robert Koberg' <>
Date
2005-03-28T20:21:03Z
Thread
RE: [xml-dev] XSLT with DOM or SAX ?
> Does document('') load the XSL from the source again?
> 

In Saxon, document('') always reparses the stylesheet document. There are
several reasons:

(a) If you're using XML external entities, document('') gives you the
current external entity, not the whole document.

(b) Saxon doesn't keep the source stylesheet around at run-time.

(c) When a stylesheet is parsed, comments and processing instructions and
most whitespace text nodes are discarded very early on. But these are needed
in the result of document('').

Michael Kay
http://www.saxonica.com/