Re: [ACTION 128] Add the idValue to ODD

2012/8/11 Felix Sasaki <fsasaki@w3.org>

> Hi Yves, all,
>
> 2012/8/10 Yves Savourel <ysavourel@enlaso.com>
>
>> Hi Felix,
>>
>> > thanks. I updated the change log and the table at
>> >
>> http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#datacategories-defaults-etc
>> > is the entry for id value in the table correct?
>>
>> Sorry I forgot those.
>>
>
> NP.
>
>
>>
>> The table entry looks ok, except possibly for Overriding: I think it
>> should be Yes.
>>
>
> Shouldn't it be rather not applicable? Also, the inheritance should be
> none, I think. Otherwise, for an input like this
>

Sorry, in the below file the "desc" element should look like this:

<desc>The module <em>cannot</em> find the default settings file.
            You need to re-initialize the system.</desc>
 - Felix


> <doc
>   xmlns:its="http://www.w3.org/2005/11/its" >
>  <its:rules version="2.0">
>   <its:idValueRule selector="//text" idValue="concat(../@name, '_t')"/>
>   <its:idValueRule selector="//desc" idValue="concat(../@name, '_d')"/>
>  </its:rules>
>  <msg name="settingsMissing">
>   <text>Can't find settings file.</text>
>   <desc>The module cannot find the default settings file.
>      You need to re-initialize the system.</desc>
>  </msg>
> </doc>
>
>
> We have an output like this:
>
>  <node path="/doc/msg[1]/desc[1]" outputType="new-value-global">
>          <output>settingsMissing_d</output>
>       </node>
>       <node path="/doc/msg[1]/desc[1]/em[1]" outputType="inherited">
>          <output>settingsMissing_d</output>
>       </node>
> That is, the id inherits from "desc" to the child element "em".
> So we should probably change
> "The information applies to the textual content of the element, including
> child elements, but excluding attributes."
> to
> "There is no inheritance."
> What do you think?
>
>
>>
>> > One question: would it be OK to rename the "idvalue"
>> > attribute to "idvaluePointer"?
>>
>> Good question. I'm not sure: The result of the XPath expression is a
>> string, not a node, (see example 59:
>> http://www.w3.org/International/multilingualweb/lt/drafts/its20/examples/xml/EX-idvalue-element-2.xml)
>> so in that sense it doesn't follow the pattern we've used for the
>> zzzPointer attributes.
>>
>
> You are right.
>
>
>>
>>
>> > Also, is it OK to re-formulate
>> >
>> > If the attribute xml:id is present for the selected node,
>> > the value of the xml:id attribute takes precedence over
>> > the idValue value.
>> >
>> > to
>> >
>> > If the attribute xml:id is present for the selected node,
>> > the value of the xml:id attribute MUST take precedence over
>> > the idValue value.
>>
>
> Thanks, will.
>
> Best,
>
> Felix
>
>
>>
>> Absolutely.
>>
>> Cheers,
>> -ys
>>
>>
>>
>>
>

Received on Saturday, 11 August 2012 05:18:38 UTC