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

Re: using <ns> to specify namespaces

From: Sebastian Rahtz <Sebastian.Rahtz@oucs.ox.ac.uk>
Date: Thu, 02 Feb 2006 09:08:40 +0000
Message-ID: <43E1CC18.9000703@oucs.ox.ac.uk>
To: Yves Savourel <yves@opentag.com>
CC: public-i18n-its@w3.org



Yves Savourel wrote:
> I did try it as well it's working fine so far.
> 
> But I'm not sure what advantages it brings compare to simply having a normal namespace declaration. For example:
> 
....
> <its:documentRules xmlns:h="http://www.w3.org/1999/xhtml">
>  <its:documentRule its:translate="no" its:translateSelector="//h:tr/@title" />
>  <its:documentRule its:translate="no" its:translateSelector="//h:td" />
> </its:documentRules>
> 
> Makes no difference as far as what I have to do: Add a namespace to the namespace manager of the prcessed document.

one problem is that in XSLT the prefix you used (h) is not available
to the script. I have no way of knowing what you use, I just see "h:" in 
the XPath

> I also presume
> that I still would have to solve any potential prefix conflict.

yes, you would


-- 
Sebastian Rahtz
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431

OSS Watch: JISC Open Source Advisory Service
http://www.oss-watch.ac.uk
Received on Thursday, 2 February 2006 09:09:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:43:06 UTC