Firefox: how to apply XSLT from plugin to opened XML document? (how to replace document with another

Posted by aloispaulin on Stack Overflow See other posts from Stack Overflow or by aloispaulin
Published on 2010-04-04T15:34:22Z Indexed on 2010/04/04 17:13 UTC
Read the original article Hit count: 267

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about firefox

Related posts about document