← Prev in month ← Prev in thread
Next in thread → Next in month →

CTR test suite files

From
Yves Savourel <>
Date
2015-11-29T21:04:25+00:00
ID
[email protected]
Thread
CTR test suite files
Hi,

Still trying to figure out what is correctly invalid/valid in the CTR test suite. Here is another note:

For Bad-ctr-property-not-legit-category.xlf I think the error is incorrect and (once corrected for the multiple <changeTrack>
presence) the file is actually correct:

Here is the unit:

      <unit id="1">
         <ctr:changeTrack>
            <ctr:revisions appliesTo="note" currentVersion="r1" ref="n1">
               <ctr:revision author="Bob"
datetime="2013-07-16T10:30:00+8:00" version="r1">
                  <ctr:item property="content">The translation should be formal</ctr:item>
                  <ctr:item property="category">instruction</ctr:item>
               </ctr:revision>
               <ctr:revision author="Bob"
datetime="2013-05-16T10:30:00+8:00" version="r2">
                  <ctr:item property="content">The translation should be informal</ctr:item>
                  <ctr:item property="category">comment</ctr:item>
                  <ctr:item property="category">tangerine</ctr:item><!--
5.6.5.6 property
MUST be either content to signify the content of an element, or the name of the attribute relating to the revision data.
--><!-- violation not a legit category -->
               </ctr:revision>
            </ctr:revisions>
         </ctr:changeTrack>
         <notes>
            <note category="instruction" id="n1">The translation should be formal</note>
            <note category="comment" id="n2">Please Review my translation</note>
         </notes>
         <segment>
            <source>Hello World</source>
            <target>Guten Tag Welt</target>
         </segment>
      </unit>

The comment says:

<ctr:item property="category">tangerine</ctr:item> 
<!-- 5.6.5.6 property MUST be either content to signify the content of an element,
or the name of the attribute relating to the revision data.
Violation not a legit category -->

But 5.6.5.6 refers to the value of property, not the value the attribute it points to. So in this case the note does have a category
attribute (which happens to have a correct value as well). So there is nothing wrong with: <ctr:item
property="category">tangerine</ctr:item>

It would be invalid if you had: <ctr:item property="tangerine">whatever</ctr:item> because 'tangerine' is not an attribute of the
note.

To be frank: I wonder how one can really implement some of the validations for the change tracking module. Some, like 5.6.5.6 seem
very difficult to do. There is also the case of how to represent something that is deleted: looking at
Bad-ctr_property-not-content-or-valid-attribute-ref.xlf one cannot refer to deleted attribute for example. So how we do that?

Cheers,
-yves
← Prev in month ← Prev in thread
Next in thread → Next in month →