[
Lists Home |
Date Index |
Thread Index
]
> 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/
|