W3C home > Mailing lists > Public > public-i18n-its@w3.org > January to March 2007

Re: Namespace compare issue (Was: Re: Teleconference Minutes 2007-01-17)

From: Felix Sasaki <fsasaki@w3.org>
Date: Fri, 19 Jan 2007 01:13:43 +0900
Message-ID: <45AF9CB7.3050208@w3.org>
To: Sebastian Rahtz <sebastian.rahtz@oucs.ox.ac.uk>
Cc: Yves Savourel <ysavourel@translate.com>, public-i18n-its@w3.org

Sebastian Rahtz wrote:

>>   
> why not just
> 
> concat( namespace-uri(),'#',local-name())
> 
> and have done with it?
> 
> But some namespaces end in #, so thats not a wise choice of separator.
> might
> be better to say
> 
> concat('{', namespace-uri(),'}',local-name())

Good idea, that should do it, except that "{" and "}" need to be escaped:
concat('{{', namespace-uri(.),'}}',local-name())
The result looks good:
http://www.w3.org/International/its/tests/test3/Translate1-result.xml

Let's go for that.

Felix
Received on Thursday, 18 January 2007 16:14:00 GMT

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