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

Re: Semantics of p:string-replace

From: Innovimax SARL <innovimax@gmail.com>
Date: Thu, 26 Apr 2007 19:53:14 +0200
Message-ID: <546c6c1c0704261053v40570ffcoa02d22ffab9b5891@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org
On 4/26/07, Norman Walsh <ndw@nwalsh.com> wrote:
>
> I don't think there's any way to produce the result:
>
>   <div>
>     <p class="value1 value2">[
>       Some
>       linked
>       text.
>     ]</p>
>   </div>


what about
<p:string-replace>
   <p:option name="match" value="p/string()"/>
   <p:option name="replace" value="concat('[',.,']')"/>
 </px:string-replace>



unless we add an explicit option to preserve the wrapper:
>
>   <p:string-replace>
>     <p:option name="match" value="p"/>
>     <p:option name="replace" value="concat('[',.,']')"/>
>     <p:option name="preserve-element-wrapper" value="yes"/>
>   </px:string-replace>
>
> Which I'm not opposed to. But nor do I feel strongly about.
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norman Walsh <ndw@nwalsh.com> | Everything should be made as simple as
> http://nwalsh.com/            | possible, but no simpler.
>
>


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Thursday, 26 April 2007 17:53:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:50 GMT