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

Re: AW: concatenating user input and special characters

From: Mikko Honkala <honkkis@tml.hut.fi>
Date: Tue, 03 Dec 2002 16:36:14 +0200
Message-ID: <3DECC15E.2000206@tml.hut.fi>
To: www-forms@w3.org
CC: Roman Huditsch <roman.huditsch@hico.com>, Mark Seaborne <MSeaborne@origoservices.com>

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.

Received on Tuesday, 3 December 2002 09:31:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:07 UTC