W3C home > Mailing lists > Public > public-forms@w3.org > March 2012

Re: Custom functions (Major re-write, please review)

From: Leigh L. Klotz, Jr. <Leigh.Klotz@Xerox.com>
Date: Wed, 14 Mar 2012 07:56:35 -0700
Message-ID: <4F60B1A3.8020605@Xerox.com>
To: public-forms@w3.org
Nick Van den Bleeken writes:

> So I think our custom functions also shouldn't do that. Now that we have variables you can work around this limitation.
>
> Example:
>
> <var name="context" value="."/>
> <var name="context-pos" value="position()"/>
> <var name="context-size" value="last()"/>
> <function signature="my:f() as number" value="$context-pos = $context-size"/>
>

How does the scoping on this work?

Wouldn't you have to do this?

<function signature="my:f() as number" value="position() = last()"/>

Leigh.
Received on Wednesday, 14 March 2012 14:57:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:56 UTC