W3C home > Mailing lists > Public > public-xformsusers@w3.org > November 2016

Extension functions

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Tue, 08 Nov 2016 11:54:20 +0100
To: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Message-ID: <op.yqlu8unusmjzpq@steven-aspire-s7>
https://www.w3.org/community/xformsusers/wiki/XForms_2.0#Extension_Functions

I added an example.

<model functions="math:sin">
    <instance>
       <data xmlns="">
          <length/>
          <angle/>
          <height/>
       </data>
    </instance>
    <bind ref="length | angle | height" type="double"/>
    <bind ref="height" calculate="../length * math:sin(../angle)"/>
</model>

Happy?

Steven
Received on Tuesday, 8 November 2016 10:54:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 8 November 2016 10:54:54 UTC