The property() Function
Release 2.0 - ...
Syntax
Copy Code | |
---|---|
string property(string) |
Description
This function accepts a string identifying a property name. If the property name is not recognized, an empty string is returned.
The property definitions for this function are as follows:
- version: returns "1.1".
- conformance-level: returns full, basic or a string beginning with full or basic (Smartsite XForms engine will return full as conformance-level).
- Any other NCName: reserved; their use results in an exception.
- QNameButNotNCName: implementation specific. The Smartsite XForms engine currently doesn't support this feature.
Example
XML | Copy Code |
---|---|
<xforms:output value="property('version')"> <xforms:label>Version : </xforms:label> </xforms:output> <xforms:output value="property('conformance-level')"> <xforms:label>Conformance Level : </xforms:label> </xforms:output> |
The above example returns "1.1" and "full" respectively.
Specification
Link to the XForms specification: the property() function.