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

[closed] Re: Incorrect example in 2.13.2.1

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 11 Feb 2010 07:29:33 -0500
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2k4ukrm4y.fsf@nwalsh.com>
"Toman_Vojtech@emc.com" <Toman_Vojtech@emc.com> writes:
> 2.13.2.1 (Examples) contains an incorrect example:
>
> "
> In forwards-compatible mode, it is not a static error to encounter the
> following step:
>
> <p:string-replace match="div/@class" replace="$foo">
>   <p:input port="ancillary">
>     <p:document href="doc.xml"/>
>   </p:input>
> </p:string-replace>
> "
>
> The value of the replace option is "$foo", which will never work in this
> case (the variable bindings are empty in the step XPath context).

Actually, since it was in a shortcut, the new value would have been
literally "$foo" w/o any XPath evaluation at all. But that's
misleading at best :-).

Fixed.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | One must look for one thing only, to
http://nwalsh.com/            | find many.--Cesare Pavese

Received on Thursday, 11 February 2010 12:30:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 11 February 2010 12:30:07 GMT