Re: [Xsltforms-support] XSLTForms and REST
Brought to you by:
alain-couthures
From: Efraim F. <efr...@gm...> - 2011-02-22 16:14:37
|
xquery version "1.0"; 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>Make error</title> <xf:model> <xf:instance id="blank"> <blank xmlns=""/> </xf:instance> <xf:submission ref="instance('blank')" id="error-submit" method="get" action="do-error.xql" replace="none"> <xf:action ev:event="xforms-submit-error"> <xf:message> An error occurred. type: <xf:output value="event('error-type')"/> code: <xf:output value="event('response-status-code')"/> headers: <xf:output value="event('response-headers')"/> body: <!--xf:output value="event('response-body')"/--> </xf:message> </xf:action> </xf:submission> </xf:model> </head> <body> <div> <xf:submit submission="error-submit"> <xf:label>Error</xf:label> </xf:submit> </div> </body> </html> |