POSTXForms submission to submit an XForms instance.
POSTto submit an XML document directly to a page.
report-detail-view.xsl, create an XForms submission as follows:
actionattribute on the
xf:submissionelement should not be confused with the
<action>element of the page flow. The former specifies a URL to which the XForms submission must be performed, as per the XForms 1.0 recommendation; the latter specifies a PFC action executed when a specified boolean XPath expression operating on an XML submission evaluates to true. The XForms submission's
actionattribute instead matches a PFC
http://www.orbeon.org/myapp/xmlrpcif you have a page declaring the path
application/jsonmediatype, mediatypes of the form
default-submissionattribute as follows:
POSTconvenient in many cases, however there are other ways page developers would like to configure the way a page behaves:
<setvalue>element nested within the
<page>element. To do so, an XML submission must take place on the page. This can be achieved by using the default submission if no other submission is taking place. The default submission document must contain placeholders for for the values to extract from the URL. Given an URL query string of
first=12&count=10with two parameters,
count, a default sumission document can look as follows:
<setvalue>element uses the
refattribute, which contains an XPath 2.0 expression identifying exactly one element or attribute in the XML document. The text value of the element or attribute is then set with the value of the URL parameter specified. If there is no parameter with a matching name, the element or attribute is not modified. This allows using default values, for example:
countparameter is specified on the URL, the default value will be available.
first=12&count=10, the resulting XML document will be:
first=12, the resulting XML document will be:
matcherattribute on the page as documented below. You can then extract regular expression groups using the
<setvalue>element with the
matcher-groupattribute contains a positive integer identifying the number of the regular expression group to extract. With a path of
/blog/jdoe/456, the first group contains the value
jdoe, and the second group the value
<setvalue>element also supports a
valueattribute, which can be used to set a value using an XPath expression:
<setvalue>supports setting a literal value:
<action>elements, or reading the instance in the page model or page view, it must not expect to be able to read the HTTP request body separately using the Request generator.