W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > November 2008

Re: Evaluating replace on string-replace

From: Josh Matthews <joshmatthews@gmail.com>
Date: Tue, 4 Nov 2008 14:51:41 -0500
Message-ID: <ffee23380811041151id9a7588hb34229cd4d914b6c@mail.gmail.com>
To: mozer <xmlizer@gmail.com>
Cc: "Norman Walsh" <ndw@nwalsh.com>, public-xml-processing-model-comments@w3.org
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:26 UTC