Re: Semantics of p:string-replace

/ ht@inf.ed.ac.uk (Henry S. Thompson) was heard to say:
| Surely that's 
|
|   <div>
|     <p class="value1 value2">[
|       Some
|       ][linked][
|       text.
|     ]</p>
|   </div>

D'oh! Of course.

|> 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.
|
| See previous message -- you can do this with XSLT, it's a marginal
| case, let's not go there.

Fine by me.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Everything should be made as simple as
http://nwalsh.com/            | possible, but no simpler.

Received on Thursday, 26 April 2007 17:53:07 UTC