Title: RE: HIERCHY_REQUEST_ERROR

 
When I modifed the DOM2DOM example to use my .xsl and .xml files
it worked.  So I started from scratch using the DOM2DOM code
as a starting point and could not reproduce the HIERCHY_REQUEST_ERROR. 

Anyway, thanks to all who provided suggestions.

    Nick

> > > -----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