views:

20

answers:

0

Hi!

I've developed a plug-in for Firefox, that can read and manipulate the content of the currently opened document. I would like to apply a XLST to the document in case it is XML. I have no problem to read the XML document and apply a XSLT to it in memory, however, I have no idea of how to replace the existing document with the newly created one.

Thus, I see two possible scenarios:

a) I replace the document with the result of the transformation b) I apply the XSLT directly to the XML

All my attempts to realize one of both possible solutions have failed... Hoping the community can provide help!

Many tnx in advance! Alois