Chapter 6. XForms Functions

Introduction

The previous chapter showed how XPath expressions can be used in calculating the values of certain form fields. When writing such expressions, it is useful to have a standard set of utility functions for performing common computations. As explained in Section 2.2, XPath expressions can use functions that are defined in the XPath specification. In addition, XPath makes it possible to define extension functions for use in languages that adopt XPath as the base expression language. XForms 1.0 defines a handful of such extension functions, and these will be described in the rest of this chapter along with motivating examples for each. We refer to this collection of functions as the XForms core function library. ...

Get XForms: XML Powered Web Forms now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.