[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 07:27:33
|
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 |