W3C home > Mailing lists > Public > www-forms@w3.org > December 2002

RE: AW: concatenating user input and special characters

From: Mark Seaborne <MSeaborne@origoservices.com>
Date: Tue, 3 Dec 2002 14:48:56 -0000
Message-ID: <DC65AE678B89004B9CCB202E19482CC704FB95@mail.origoservices.local>
To: "Mikko Honkala" <honkkis@tml.hut.fi>, <www-forms@w3.org>
Cc: "Roman Huditsch" <roman.huditsch@hico.com>

Mikko

Thanks for putting me straight. I just tried it, and it does work fine. Whether or not is any use to Roman is another matter.

I need to read the CR more carefully, even though I am an end user :)

All the best

Mark

> -----Original Message-----
> From: Mikko Honkala [mailto:honkkis@tml.hut.fi]
> Sent: 03 December 2002 14:36
> To: www-forms@w3.org
> Cc: Roman Huditsch; Mark Seaborne
> Subject: Re: AW: concatenating user input and special characters
> 
> 
> To further clarify:
> 
>   <xfm:bind nodeset="//@xlink:href[starts-with(., '#') = false]" 
> calculate="concat('#', .)"/>
> 
> does not mean that you run this calculation once per each node. It
> means that you attach this calculation to be run _EVERY TIME_ the 
> dependent nodes change.
> 
> So you could try something along the lines of
> 
> <xfm:bind nodeset="//@xlink:href" calculate="if(starts-with(., 
> '#'),.,concat('#', .))"/>
> 
> Note: the above probably has errors, I did not have a chance 
> to try it.
> 
> -mikko
> 
> 
Received on Tuesday, 3 December 2002 09:49:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:54 GMT