RE : XSL processing instructions

Hi,
I don't know If you find your answer... If you don't, I've found it :)
you must create an empty document like :

Document doc = new Document();

then add your ProcessingInstr uction to this empty document
like doc.addContent( pi);

and finally set the root element of the document :
doc.setRootElem ent(root);

And know...