Hi Nick, I use DOM-to-DOM transformations with Xalan a lot, and only ever encounter this error message when my stylesheet has an error. So it really seems unlikely to me that this is a bug in Xalan.
This error can happen when you try to output two "root" nodes in a document, eg <?xml version="1.0" encoding="utf-8"?> <foo/> <bar/> As Joe said, SAXResult will output this (invalid xml) happily, but DOM will report HIERARCHY_ERROR. I suggest you look at the output you get from running Process at the command line and check for this problem. If this is not the issue, then I suggest you include the actual output you get from Process in your next mail (and the smaller your "test case", the more likely someone will be interested in reading through it). Regards, Simon
