You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Brian Quinlan <br...@sweetapp.com> on 2002/04/19 03:58:30 UTC

Returning new nodes from extension function

I'd like to write a Xalan extension function that, given XML in string
format, returns a node set or result tree fragment.

Does this approach seem feasible:

1. enclose the XML in <magic-out-tags>
2. parse the XML using Xerces
3. use the liaison classes to get XalanNodes
4. subclass XNodeSetBase and return the correct XalanNodes
5. wait until the transformation is done and free up the DOM that I
greated

Cheers,
Brian