Re: [Xsltforms-support] getInstanceDocument()
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2010-01-06 21:09:56
|
Jesper, Sorry for the late response. You have to look at XNode class in xsltforms.js to exactly know which methods are implemented. In your test case, you can use "setAttributeNS". Usually, for Javascript instructions, I use a debugger. FireBug has its own bugs but has also some advantages, especially in this case, it can display which methods are available. Cheers, -Alain > I would very much appreciate if anyone could come with a working > example of how to change an attribute value in the instance document > using getInstanceDocument(). > > The DOM interface to the instance document is a must for any but the > most trivial use cases of XSLTForms. > > In my supplied test file I have manage to update element content. My > test file is working e.g. in IE (the DTD must be deleted first), > Firefox, Opera and Chrome, but I have not been able to update or > create attributes or to create a new element. > > Cheers, > Jesper Tverskov > > http://www.xmlkurser.dk > http://www.xmlplease.com > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > |