@@ -489,6 +489,15 @@ Earlier _selectors_ in the _matcher_'s list of _selectors_ have a higher priorit
489
489
When all of the _selectors_ have been processed,
490
490
the earliest-sorted _variant_ in the remaining list of _variants_ is selected.
491
491
492
+ > [!NOTE]
493
+ > A _selector_ is not a _declaration_.
494
+ > Even when the same _function_ can be used for both formatting and selection
495
+ > of a given _operand_
496
+ > the _annotation_ that appears in a _selector_ has no effect on subsequent
497
+ > _selectors_ nor on the formatting used in _placeholders_.
498
+ > To use the same value for selection and formatting,
499
+ > set its value with a `.input` or `.local` _declaration_.
500
+
492
501
This selection method is defined in more detail below.
493
502
An implementation MAY use any pattern selection method,
494
503
as long as its observable behavior matches the results of the method defined here.
@@ -692,10 +701,11 @@ and an `en` (English) locale,
692
701
the pattern selection proceeds as follows for this message:
693
702
694
703
```
695
- .match {$count : number }
696
- one {{Category match}}
697
- 1 {{Exact match}}
698
- * {{Other match}}
704
+ .input {$count : number }
705
+ .match {$count}
706
+ one {{Category match for {$count}}}
707
+ 1 {{Exact match for {$count}}}
708
+ * {{Other match for {$count}}}
699
709
```
700
710
701
711
1. For the selector:<br>
@@ -716,7 +726,7 @@ one {{Category match}}
716
726
This is then sorted as:<br>
717
727
« ( 0, `1` ), ( 1, `one` ), ( 2, `*` ) »<br>
718
728
719
- 4. The pattern `Exact match` of the most preferred `1` variant is selected.
729
+ 4. The pattern `Exact match for {$count} ` of the most preferred `1` variant is selected.
720
730
721
731
## Formatting
722
732
0 commit comments