← Prev in month ← Prev in thread

Validation and rule overriding

From
Yves Savourel <>
Date
2014-06-15T11:12:18+00:00
ID
006501cf888a$a20a4480$e61ecd80$@com
Thread
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
← Prev in month ← Prev in thread