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

Re: Semantics of p:string-replace

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 26 Apr 2007 13:52:52 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87r6q7m39n.fsf@nwalsh.com>
/ 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 GMT

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