[Xsltforms-support] Error when using event function
Brought to you by:
alain-couthures
From: Philip F. <Phi...@ma...> - 2011-05-16 12:10:18
|
Hello, I have found an issue with the r502 build of XSLTForms. I download the tarball for the 502 revision and copied its contents into my application. When my forms are being processed I get the following message: XSLTForms Exception -------------------------- Error initializing : stringValue(null)@http://localhost:8031/resource/xsltforms/xsltforms.js:8334 ([object Element],[object Array],0,[object Array])@http://localhost:8031/resource/xsltforms/xsltforms.js:1944 ([object Object],[object Element])@http://localhost:8031/resource/xsltforms/xsltforms.js:4027 ([object Element])@http://localhost:8031/resource/xsltforms/xsltforms.js:4136 ([object Element])@http://localhost:8031/resource/xsltforms/xsltforms.js:4013 ([object HTMLSpanElement],[object Element],true)@http://localhost:8031/resource/xsltforms/xsltforms.js:1807 ([object HTMLSpanElement],[object Element],true)@http://localhost:8031/resource/xsltforms/xsltforms.js:1824 ([object HTMLBodyElement],[object Element],true)@http://localhost:8031/resource/xsltforms/xsltforms.js:1824 ()@http://localhost:8031/resource/xsltforms/xsltforms.js:1754 ()@http://localhost:8031/resource/xsltforms/xsltforms.js:1643 initImpl()@http://localhost:8031/admin/events:27 init()@http://localhost:8031/admin/events:2 onload([object Event])@http://localhost:8031/admin/events:1 TypeError value is null After a process of elimination I got to this repeatable test case (see below) which generates the error. This is also a problem with r490 too. It does work with Beta3. <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="/resource/xsltforms/xsltforms.xsl" type="text/xsl"?> <html xml:lang="en" lang="en" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>EOI: Events Management</title> <meta http-equiv="content-language" content="en"/> <meta http-equiv="cache-control" content="no-cache"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <xf:model> <!-- === Collection. =========================================== --> <xf:submission id="retrieve-collection" method="get" instance="collection" replace="instance" resource="/events.atom" serialization="none"> <xf:action ev:event="xforms-submit-error"> <xf:message level="modal"> <xf:output value="event('response-reason-phrase')"/> </xf:message> </xf:action> </xf:submission> <xf:instance id="collection"> <atom:feed/> </xf:instance> <xf:bind id="entries" nodeset="instance('collection')/atom:entry"/> </xf:model> </head> <body> <div id="content"> </div> </body> </html> |