Hi Mark, Because XSLTForms 1.0 is using native DOM, it is just DOM2 with IE: this test case works replacing "alert(my_color.textContent)" by "alert(my_color.textContent || my_color.text)".
BTW, I have developed my own DOM implementation written in Javascript because DOM4 is inappropriate for XML processing. It will be integrated in XSLTForms 2.0. Thank you for your feedback! -Alain Le 22/04/2014 21:22, Mark Seaborne a écrit : > Hi, > > I have a form that uses the getInstanceDocument() function. It works fine in > all the browsers I have tried except Internet Explorer versions 8, 9 and 11 > (haven't tried 10). > > I am using build r595. A test form is provided below. Obviously I can't test > if any of the XSLTForms functions for manipulating instances in IE. > > Should I be doing something different to get the form working in IE? Any help > would be very much appreciated. > > Thanks > > Mark > > > > > <?xml version="1.0" encoding="UTF-8"?> > <?xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl"?> > <?xsltforms-options debug="yes"?> > <?css-conversion no?> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events"> > <head> > <title>4.8.1.a getInstanceDocument() method > (non-normative)</title> > <script type="text/javascript"> > function init() { > var model = document.getElementById('my_model1'); > var inst1 = model.getInstanceDocument('my_data1'); > var my_color = inst1.getElementsByTagName('color')[0]; > alert(my_color.textContent); > } > </script> > <xforms:model id="my_model1"> > <xforms:instance id="my_data1" xmlns=""> > <car> > <color>blue</color> > </car> > </xforms:instance> > </xforms:model> > </head> > <body onload="init()"> > <xforms:group> > <xforms:label class="title">4.8.1.a getInstanceDocument() > method (non-normative)</xforms:label> > </xforms:group> > <xforms:group> > <p> > This test case uses Javascript to execute the > getInstanceDocument() method. > You may have seen a message box with the value > "<xforms:output ref="color"/>". > </p> > </xforms:group> > </body> > </html> > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > Xsltforms-support mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > ------------------------------------------------------------------------------ Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
