Re: [Xsltforms-support] XSLTForms and REST
Brought to you by:
alain-couthures
From: Efraim F. <efr...@gm...> - 2011-02-13 03:30:40
|
xquery version "1.0"; (: demo of bug where an initially out-of-range selection goes in-range : but the UI still shows it's out of range :) declare default element namespace "http://www.w3.org/1999/xhtml"; declare namespace xf="http://www.w3.org/2002/xforms"; declare namespace ev="http://www.w3.org/2001/xml-events"; declare option exist:serialize "method=xhtml media-type=text/xml indent=yes omit-xml-declaration=no process-xsl-pi=no doctype-public=-//W3C//DTD XHTML 1.1//EN doctype-system=http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"; processing-instruction {'xml-stylesheet'}{'type="text/xsl" href="/xforms/xsltforms/xsltforms.xsl"'}, processing-instruction {'xsltforms-options'}{'debug="yes"'}, <html> <head> <title>Bug demo</title> <xf:model> <xf:instance id="test"> <result xmlns=""> <something>tosend</something> </result> </xf:instance> <xf:submission ref="instance('test')" id="submit" method="get" action="event-submit.xql" instance="test" replace="instance"> <xf:message ev:event="xforms-submit-error"> An error has happened! type: <xf:output value="event('response-status-code')"/> reason: <xf:output value="event('response-reason-phrase')"/> </xf:message> </xf:submission> </xf:model> </head> <body> <div> <xf:submit submission="submit"> <xf:label>Get an error</xf:label> </xf:submit> </div> </body> </html> |