Internally, Xalan uses a read-only data model (the DTM), which is has a read-only DOM adapter layer wrapped around it when nodes are passed to extension functions. The cloneNode operation, because it creates a new node in the same Document as the original node, would break the read-only behavior and is not permitted in this implementation.
If you need to create new instances of nodes, or modify them, create a new DOM using your preferred implementation and copy/import the nodes into that. ______________________________________ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (http://www.ovff.org/pegasus/songs/threes-rev-11.html)