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

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