- From: Yves Savourel <yves@opentag.com>
- Date: Wed, 1 Feb 2006 18:06:24 -0700
- To: <public-i18n-its@w3.org>
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> <its:ns its:prefix="h" its:uri="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> Or <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. I also presume that I still would have to solve any potential prefix conflict. Actually using <its:ns> makes things just a tad more complex because it forces the addition of the namespace via an extra step (not very expensive but still extra), while doing it via xmlns:h is done regardless of whether its rules are there or not. Mmmm... Still thinking... -ys -----Original Message----- From: public-i18n-its-request@w3.org [mailto:public-i18n-its-request@w3.org] On Behalf Of Sebastian Rahtz Sent: Wednesday, February 01, 2006 4:14 PM To: public-i18n-its@w3.org Subject: using <ns> to specify namespaces Just to report that a quick trial shows the notation proposed by Felix is easy to implement in XSLT. I changed my dislocated rules to <documentRules xmlns="http://www.w3.org/2005/11/its"> <ns its:prefix="t" its:uri="http://www.tei-c.org/ns/1.0"/> <documentRule its:translate="no" its:translateSelector="//t:body/t:p/@*"/> .... and I was able to generate an XSLT stylesheet from that which associated "t:" with the right namespace. I picked up the trick on how to do it from Schematron. Whether Felix and Yves find it equally easy in their setups I look forward to hearing. -- 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 01:06:39 UTC