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

Re: DocBook and ITS

From: Sebastian Rahtz <Sebastian.Rahtz@oucs.ox.ac.uk>
Date: Thu, 16 Mar 2006 13:51:00 +0000
Message-ID: <44196D44.5060805@oucs.ox.ac.uk>
To: Jirka Kosek <jirka@kosek.cz>
CC: Felix Sasaki <fsasaki@w3.org>, public-i18n-its@w3.org

Jirka Kosek wrote:
>
> Yes, I can understand this, but you can have one set of namespaced
> attributes for instances, and second unnamespaced set for documentRules.

yes, you could. but its nice to have a single schema fragment
used in both cases, and only one lot of XML processing code
to maintain.

alter all, writing a <documentRules> file is not a constant
daily occurrence where the slight verbosity is an irritant.


>   <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...

> 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.

>> The RelaxNG patterns can be generated with a prefix
>> by setting the parameter "patternPrefix" to "its."
>> when the XSLT script is called.
> 
> Cool! Do you think that the next version of WD can have RNG/RNC schemas
> with this change incorporated?

sure, it just means Felix has to add that parameter setting
to the shell script he runs.

-- 
Sebastian Rahtz

*Open Source and Sustainability*
10-12 April 2006, Oxford
http://www.oss-watch.ac.uk/events/2006-04-10-12/

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, 16 March 2006 13:53:11 UTC

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