Re: Translation output

Hi Philip, all,

we discussed this a while ago on the test suite list, see
http://lists.w3.org/Archives/Public/public-multilingualweb-lt-tests/2012Nov/0056.html
bottom line is that defaults should be given if there is something in 
the "default column" at
http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#datacategories-overview
and if there is no other value available (that is, via local markup / 
global rules / inheritance). See the correct output for translate1xml.xml at
https://github.com/finnle/ITS-2.0-Testsuite/blob/master/its2.0/inputdata/translate/xml/translate1xml.xml

So the output below is not correct, it's missing the default values.


Am 17.12.12 15:43, schrieb Philip:
> Hey Guys,
> I was just wondering if the expected output translate1xml.xml is 
> correct, in the outputs the node list have default values applied. 
> Elements are defaulted to translate yes and attributes have default of 
> no. The defaults are not specified in the its rules

Sorry, I don't understand the statement "the defaults are not specified 
in the its rules", could you clarify?

Best,

Felix

> , is this behavior correct and if so where is the behavior explicitly 
> specified.
>
> I.e. is this correct output for translate1xml.xml?
> /myMetaDoc
> /myMetaDoc/head[1]
> /myMetaDoc/head[1]/its:rules[1]
> /myMetaDoc/head[1]/its:rules[1]/@version
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[1]
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[1]/@selector
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[1]/@translate
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[2]
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[2]/@selector
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[2]/@translate
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[3]
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[3]/@selector
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[3]/@translate
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[4]
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[4]/@selector
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[4]/@translate
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[5]
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[5]/@selector
> /myMetaDoc/head[1]/its:rules[1]/its:translateRule[5]/@translate
> /myMetaDoc/head[1]/its:rules[1]/its:withinTextRule[1]
> /myMetaDoc/head[1]/its:rules[1]/its:withinTextRule[1]/@selector
> /myMetaDoc/head[1]/its:rules[1]/its:withinTextRule[1]/@withinText
> /myMetaDoc/body[1]
> /myMetaDoc/body[1]/par[1]
> /myMetaDoc/body[1]/par[1]/img[1]
> /myMetaDoc/body[1]/par[1]/img[1]/@alt translate="yes"
> /myMetaDoc/body[1]/par[1]/img[1]/@src
> /myMetaDoc/body[1]/par[2]
> /myMetaDoc/body[1]/par[2]/@id
> /myMetaDoc/body[1]/par[2]/@title translate="yes"
> /myMetaDoc/body[1]/par[2]/verbatim[1] translate="no"
> /myMetaDoc/body[1]/par[2]/verbatim[1]/img[1] translate="no"
> /myMetaDoc/body[1]/par[2]/verbatim[1]/img[1]/@alt translate="no"
> /myMetaDoc/body[1]/par[2]/verbatim[1]/img[1]/@src translate="no"
> /myMetaDoc/body[1]/insert[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:封面[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:封面[1]/z:汇集[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:封面[1]/z:标题[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:封面[1]/z:作者[1] translate="no"
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:章节[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:章节[1]/@数
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:章节[1]/z:头注[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:章节[1]/z:段落识别[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:章节[1]/z:段落识别[1]/@id
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:章节[1]/z:段落识别[1]/z:姓名 
> [1] translate="no"
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:章节[1]/z:段落识别[1]/z:姓名 
> [2] translate="no"
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1]/@version
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1] 
> /i:translateRule[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1] 
> /i:translateRule[1]/@selector
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1] 
> /i:translateRule[1]/@translate
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1] 
> /i:translateRule[2]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1] 
> /i:translateRule[2]/@selector
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1] 
> /i:translateRule[2]/@translate
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1] 
> /i:withinTextRule[1]
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1] 
> /i:withinTextRule[1]/@selector
> /myMetaDoc/body[1]/insert[1]/z:书籍[1]/z:躯[1]/i:rules[1] 
> /i:withinTextRule[1]/@withinText
>
>

Received on Tuesday, 18 December 2012 08:49:36 UTC