Re: using <ns> to specify namespaces

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