The name element
Release 2.0 - ...
When the name element appears as a child of element header, it is used to specify the name of a header entry to be provided to the submission protocol.
The header entry name may be given by the string content of the name element, or by the result of the value attribute. If both are given, the result from the value attribute takes precedence.
If the resulting name is the empty string, then the entry is considered to be void, and it is not supplied to the submission protocol.
Example
XML | Copy Code |
---|---|
<xforms:model> <xforms:instance> <data> <header1 name="header1">headervalue1</header1> </data> </xforms:instance> <xforms:submission id="sub1" method="post" action="http://xformstest.org/cgi-bin/echo.sh"> <xforms:header> <xforms:name value="header1/@name" /> <xforms:value value="header1" /> </xforms:header> </xforms:submission> </xforms:model> |
Attributes
Name | Required / optional | Description |
---|---|---|
value | optional | Attribute containing an XPath expression to evaluate using the in-scope evaluation context. To obtain the header name, the result of the expression is processed as if by call to the XPath string() function. An empty string is used if the XPath evaluation fails |
Content
The name element only allows inline text content.
Specification
Link to the XForms specification: the name element.