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

Re: DocBook and ITS

From: Jirka Kosek <jirka@kosek.cz>
Date: Thu, 16 Mar 2006 15:37:37 +0100
Message-ID: <44197831.2070006@kosek.cz>
To: Sebastian Rahtz <Sebastian.Rahtz@oucs.ox.ac.uk>
Cc: Felix Sasaki <fsasaki@w3.org>, public-i18n-its@w3.org
Sebastian Rahtz wrote:

>>   <documentRules xmlns:its="http://www.w3.org/2005/11/its"
>>                  xmlns="http://www.w3.org/2005/11/its">
>>       <ns its:prefix="db" its:uri="http://docbook.org/ns/docbook"/>
>>       <documentRule its:translate="no"
>>                     its:translateSelector="//db:para/@*"/>
>>       <documentRule its:translate="yes"
>>                     its:translateSelector="//db:para"/>
>>   </documentRules>
>>
>> (yes, this last example looks quite ugly)
> 
> I am not sure why, to be honest...

Because you have to declarace ITS namespace twice and attributes have to 
be prefixed, even if elements are not (thanks to default namespace).

>> I don't see problem with having two sets of attributes. Moreover their
>> meaning is quite different. Namespaced attributes define ITS properties
>> for the current element, and unnamespaced for elements referenced by
>> documentRule.
 >
> but in practice a processing application may read the rules
> file, and copy attributes to an instance tree. Its a shame if
> it cannot just copy attribute nodes.

I prefer to think about markup design first, and about implementation 
costs afterwards. Yes, copying attribute node with a namespace change is 
not one operation, but two operations.

What is more important, is that current proposal doesn't allow to use 
attributes like its:translate on rule elements in the same way as on 
arbitrary other elements. I mean that you can't use ITS to annotate 
itself. (Other question is, whether this could be useful for something.)


-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@kosek.cz     http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
                    Nejbližší termíny školení:
      ** XSLT 13.-16.3.2006 ** XML schémata 24.-26.4.2006 **
        ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
------------------------------------------------------------------


Received on Thursday, 16 March 2006 14:37:46 UTC

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