|
770 | 770 | </t> |
771 | 771 | <t> |
772 | 772 | <xref target="annotations">Annotation</xref> results are |
773 | | - combined according to the rules specified by each annotation keyword. |
| 773 | + preserved along with the instance location and the location of |
| 774 | + the schema keyword, so that applications can decide how to |
| 775 | + interpret multiple values. |
774 | 776 | </t> |
775 | 777 | <section title="Referenced and Referencing Schemas" anchor="referenced"> |
776 | 778 | <t> |
|
865 | 867 | <t> |
866 | 868 | Annotations are attached to specific locations in an instance. |
867 | 869 | Since many subschemas can be applied to any single |
868 | | - location, annotation keywords need to specify any unusual handling of |
869 | | - multiple applicable occurrences of the keyword with different values. |
| 870 | + location, applications may need to decide how to handle differing |
| 871 | + annotation values being attached to the same instance location by |
| 872 | + the same schema keyword in different schema objects. |
870 | 873 | </t> |
871 | 874 | <t> |
872 | 875 | Unlike assertion results, annotation data can take a wide variety of forms, |
|
919 | 922 | </t> |
920 | 923 | </list> |
921 | 924 | </t> |
922 | | - <t> |
923 | | - If the same keyword attaches values from multiple schema locations |
924 | | - to the same instance location, and the annotation defines a process |
925 | | - for combining such values, then the combined value MUST also be associated |
926 | | - with the instance location. The <xref target="output">output formats</xref> |
927 | | - described in this specification that include annotation information |
928 | | - meet this requirement. |
929 | | - </t> |
930 | 925 | <section title="Distinguishing Among Multiple Values"> |
931 | 926 | <t> |
932 | 927 | Applications MAY make decisions on which of multiple annotation values |
|
986 | 981 | <t> |
987 | 982 | In this example, both Feature A and Feature B make use of the re-usable |
988 | 983 | "enabledToggle" schema. That schema uses the "title", "description", |
989 | | - and "default" annotations, none of which define special behavior for |
990 | | - handling multiple values. Therefore the application has to decide how |
| 984 | + and "default" annotations. Therefore the application has to decide how |
991 | 985 | to handle the additional "default" value for Feature A, and the additional |
992 | 986 | "description" value for Feature B. |
993 | 987 | </t> |
|
1061 | 1055 | <t> |
1062 | 1056 | In addition to possibly defining annotation results of their own, |
1063 | 1057 | applicator keywords aggregate the annotations collected in their |
1064 | | - subschema(s) or referenced schema(s). The rules for aggregating |
1065 | | - annotation values are defined by each annotation keyword, and are |
1066 | | - not directly affected by the logic used for combining assertion |
1067 | | - results. |
| 1058 | + subschema(s) or referenced schema(s). |
1068 | 1059 | </t> |
1069 | 1060 | </section> |
1070 | 1061 | </section> |
|
0 commit comments