XSLT source assumes the source document is immutable. Xalan's SAX mode enforces that; its DOM mode may not but is NOT guaranteed to function correctly if you change the document while the transformation is in progress.
Rewrite your stylesheet and/or your extension to avoid requiring this side-effect, eg by using the Xerces DOM to produce new nodes that your extension can return. ______________________________________ Joe Kesselman / IBM Research
