Re: Semantics of p:string-replace

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ht writes:

> Norman Walsh writes:

>> I don't think there's any way to produce the result:
>>
>>   <div>
>>     <p class="value1 value2">[
>>       Some
>>       linked
>>       text.
>>     ]</p>
>>   </div>
>
> Agreed.

Oops -- what about

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

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFGMR5wkjnJixAXWBoRAhu0AJ4iXx89ztVQqyC4e+9KUE9S+SsWxQCfZocC
PqkMxIWfntkJLpvWsGOR8hs=
=34Cq
-----END PGP SIGNATURE-----

Received on Thursday, 26 April 2007 21:49:59 UTC