APPENDIX: The Soft-bar Installer API

Mark Birbeck's picture

The Soft-bar Installer API is a set of functions available to an XForms document which allow bars to be added and removed from the browser.

The namespace for the library is:

urn:formsplayer.com/softbars

Example

Functions in the library can be made available to XPath expressions like this:

<html
 xmlns="http://www.w3.org/1999/xhtml"
 xmlns:xf="http://www.w3.org/2002/xforms"
 xmlns:sb="urn:formsplayer.com/softbars"
>
  <head>
    .
    .
    .
    <xf:model functions="sb:GenerateBar sb:RemoveBar">
      ...
    </xf:model>
  </head>
  .
  .
  .
</html>