You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: _sections/30-bindings.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ For convenience, the functions are categorized based on their main usage. Some f
130
130
<aid="fn:uuid"href="#fn:uuid">`uuid(number?)`</a> | string | Without arguments, it returns a random [RFC 4122 version 4](http://tools.ietf.org/html/rfc4122) compliant UUID. With an argument it returns a random string with the provided number of characters.
131
131
<aid="fn:digest"href="#fn:digest">`digest(string src, string algorithm, string encoding?)`</a> | string | As in [XForms 1.1](https://www.w3.org/TR/xforms/#fn-digest)
132
132
<aid="fn:pulldata"href="#fn:pulldata">`pulldata(string instance_id, string desired_element, string query_element, string query)`</a> | string | Returns a single value from a secondary instance based on the specified query. Shortcut for `instance(instance_id)/root/item[query_element=query]/desired_element`.
133
+
<aid="fn:base64-decode"href="#fn:base64-decode">`base64-decode(base64Binary input)`| `string` | Interprets the contents of the base64Binary value as a sequence of bytes representing a UTF-8 character string and returns the corresponding string.
<aid="fn:if"href="#fn:if">`if(boolean condition, * then, * else)`</a> | string | Deviates from [XForms 1.0](https://www.w3.org/TR/2003/REC-xforms-20031014/slice7.html#fn-if) in that the 2nd and 3rd parameter are objects and not strings.
135
136
<aid="fn:coalesce"href="#fn:coalesce">`coalesce(string arg1, string arg2)`</a> | string | Returns first non-empty value of arg1 and arg2 or empty if both are empty and/or non-existent.
@@ -192,7 +193,7 @@ For convenience, the functions are categorized based on their main usage. Some f
<aid="fn:area"href="#fn:area">`area(node-set ns|geoshape gs)`</a> | number | Returns the calculated area in m2 of either a node-set of geopoints or a geoshape value (not a combination of both) on Earth. It takes into account the circumference of the Earth around the Equator but does not take altitude into account.
194
195
<aid="fn:distance"href="#fn:distance">`distance(node-set ns|geoshape gs|geotrace gt|(geopoint|string) arg*)`</a> | number | Returns the total distance in meters of all line segments represented either by a single node-set of geopoints or a single geoshape value or a single geotrace value or a sequence of geopoint values (not a combination of these) on Earth. It uses the [spherical law of cosines](https://www.movable-type.co.uk/scripts/latlong.html) to take the circumference of the Earth around the Equator into account and does not take altitude into account. The line segment distances are computed in the order that the points are provided and then added together. The multiple-argument variant can take a combination of literal string geopoint values and references to geopoint nodes.
195
-
<aid="fn:base64-decode"href="#fn:base64-decode">`base64-decode(base64Binary input)`| `string` | Interprets the contents of the base64Binary value as a sequence of bytes representing a UTF-8 character string and returns the corresponding string.
196
+
<aid="fn:geofence"href="#fn:geofence">`geofence(geopoint p, geoshape gs)`</a> | boolean | Returns true if the specified point is inside the specified geoshape using [this algorithm](https://wrfranklin.org/Research/Short_Notes/pnpoly.html), false otherwise.
0 commit comments