OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xliff message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Validation and rule overriding


One more question about validation:

We have the following processing requirement:

[[
- When the <validation> element occurs at the <file> level, rules MUST be applied to all <target> elements within the scope of that
<file> element, except where overrides are specified at the <group> or <unit> level.

- When <validation> occurs at the <group> level, rules MUST be applied to all <target> elements within the scope of that <group>,
except where overrides are specified in a nested <group> element, or at the <unit> level.

- When <validation> occurs at the <unit> level, rules MUST be applied to all <target> elements within the scope of that <unit>.
]]

There is an example of overriding a rule in a few places, but what about rules within the same <validation> element?

Based on the PR above no overriding mechanism applies within the <validation> element, is that correct?
So for example if I have:

<unit ...>
<val:validation>
 <val:rule isPresent="abc"/>
 <val:rule isPresent="abc" caseSensitive="no"/>
 <val:rule isPresent="abc" normalization="none"/>
</val:validation>

I end up for that unit with 3 distinct rules and need to check for "abc" in target
- after normalizing to NFC and not in case-sensitive mode.
- after normalizing to NFC and in case-sensitive mode.
- after not normalizing and not in case-sensitive mode.

But if I have:

<file ...>
<val:validation>
 <val:rule isPresent="abc"/>
 <val:rule isPresent="abc" caseSensitive="no"/>
 <val:rule isPresent="abc" normalization="none"/>
</val:validation>
...
<unit ...>
<val:validation>
 <val:rule isPresent="abc" normalization="NFD"/>
</val:validation>

I end up for that unit with a single rule (or maybe three identical overridden rules):
- after normalizing to NFD and in cases-sensitive mode.

Is that correct?

Thanks,
-yves





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]