Re: Evaluating replace on string-replace

On Tue, Nov 4, 2008 at 11:02 AM, mozer <xmlizer@gmail.com> wrote:

>
> Even there,
>
> It is not clear to me that from *inside* the p:string-replace, the
> XPath evaluation can see the $opos variable
>
> [[
> .6.1.2 Step XPath Context
>
> When a step evaluates an XPath expression using XPath 1.0, it does so
> with the following initial context:
>
> context node
> The document node that appears on the primary input port of the step,
> unless otherwise specified by the step.
>
> context position and context size
> The position and size are both "1", unless otherwise specified by the step.
>
> variable bindings
> **** None, unless otherwise specified by the step. ****
>
> ]]
>

It would seem nice to me if this was "None, unless otherwise specified by
the _environment_", in which case $opos would be bound.

Cheers,
Josh Matthews

Received on Tuesday, 4 November 2008 19:58:05 UTC