Re: [Xsltforms-support] Strange error in submission with method=get & replace=all
Brought to you by:
alain-couthures
From: Javier D. <jd...@ge...> - 2010-03-31 18:55:35
|
Hello, we have corrected the error commenting line 233 of xsltforms.js: if (Core.isMozilla) { req.overrideMimeType("text/xml"); } But I don't know if this would affect to something else... Best Regards, Javier Javier Díaz escribió: > Hello, > > I have an strange javascript error in firefox, when in a xml of > xsltforms I am submitting using method=get and replace=all to a second > xsltforms page. It seems to work ok, but the javascript error worries me. > > I have seen in > http://www.agencexml.com/xforms-tests/testsuite/XForms1.1/Edition1/Chapt11/11.9/11.9.b.xhtml > a test case that works exactly as my xmls, when pressing "Get Data" > button, all seems to work ok, but in firefox error console I get: > > Error: mal formado > Archivo de origen: > http://www.agencexml.com/xforms-tests/xsltforms/echo.php?carOwner=Henry&make=Acura&color=White > Línea: 17, columna: 33 > Código fuente: > QUERY_STRING=carOwner=Henry&make=Acura&color=White > > It seems all problems are related with characters as &, <, >, that makes > the resulting xml bad formed, because when I get the resulting xml from > this request and validate with an xml parser I get: > > > $ xmllint --noout test.xml > test.xml:17: parser error : EntityRef: expecting ';' > QUERY_STRING=carOwner=Henry&make=Acura&color=White > ^ > test.xml:17: parser error : EntityRef: expecting ';' > QUERY_STRING=carOwner=Henry&make=Acura&color=White > ^ > test.xml:19: parser error : EntityRef: expecting ';' > REDIRECT_QUERY_STRING=carOwner=Henry&make=Acura&color=White > ^ > test.xml:19: parser error : EntityRef: expecting ';' > REDIRECT_QUERY_STRING=carOwner=Henry&make=Acura&color=White > ^ > test.xml:29: parser error : EntityRef: expecting ';' > REQUEST_URI=/xforms-tests/xsltforms/echo.php?carOwner=Henry&make=Acura&color=Whi > ^ > test.xml:29: parser error : EntityRef: expecting ';' > REQUEST_URI=/xforms-tests/xsltforms/echo.php?carOwner=Henry&make=Acura&color=Whi > > The error is thrown in line 1910 os xsltforms.js, "req.send(null)", when > getting the data to the browser with XMLHttpRequest. > > Best Regards, > Javier > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |