I'm trying to use processor.transformToDocument(....) to rebuild an
xsltForm 'inplace'.
The xsltXform xsl is GET'd and 'hello.xml' is GET'd.
So I have javascript in a page which uses:
processor.setParameter(null, "xsltforms_debug", "true"); //
parameter settings....
They are combined using transformToDocument.
This is then imported: var newForm =
document.importNode(xmlDoc.documentElement, true);
The newForm is of type 'Document'.
This is attached to a node in the document.
This is testing fine for the initial loading.
A second invocation retrieves 'checkbox.xml' and attempts to do the same thing.
The heading loads. No checkboxes.
If I then attempt a second loading of 'hello.xml', the form loads and
is showing the previous text entry.
The above is testing with Chrome.
(I am getting slightly different behavior with Firefox with which I am
attempting to use transformToFragment).
One area I am working on is the removal of relevant nodes and
associated variables built by xsltForms.
So that a new one can replace it.
(Alain... is there a deleteXForm in there somewhere?)
Can anyone link me with pages of clues for these types of actions?
All the best,
MarkT
|