Re: Semantics of p:string-replace

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 UTC