On Wed, 2003-03-12 at 11:17, Afshartous, Nick wrote:
> 
> > -----Original Message-----
> > From: Simon Kitching [mailto:[EMAIL PROTECTED]
>  
> > 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.
> 
> Thanks Simon.  I just swapped out my stylesheet and plugged
> in the birds.xsl from the xalan samples directory.  The
> same error resulted (below).  Also, I've been successfully
> using the output of my stylesheet as input to FOP without
> any problems.

Then how are you initialising your DOMResult object?

All that should be necessary is:
            DOMResult result = new DOMResult();

Are you perhaps using:
        DOMResult result = new DOMResult(node);
where node is not a Document node, then trying to add a PI or similar
node which can only be a child of a Document node?





Reply via email to