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

Re: XPath Context & Scope for string-replace

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 07 May 2008 07:41:01 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <m2ve1qqr3m.fsf@nwalsh.com>
/ Alex Milowski <alex@milowski.org> was heard to say:
| Looking at http://www.w3.org/TR/xproc/#c.string-replace
|
| I wonder what the XPath context is for the evaluation of the XPath
| expression?  It
| probably should be the matched node.

It is, that's what "for each matching node, the XPath expression ...
is evaluated" means. But we should probably make that more explicit :-)

| Also, what is the allowable scope of the expression?  The whole document?

Yup.

| So, if I write "concat(../foo,.)" I've blow streaming for that step.

Yup.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Some people do their laundry in emacs,
http://nwalsh.com/            | but I find typing ^C-^X-^W-q-L-TT to
                              | add the fabric softener to be a bit
                              | cumbersome.-- rlr@panix.com

Received on Wednesday, 7 May 2008 11:41:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 May 2008 11:41:35 GMT