# HG changeset patch # User paulb # Date 1202233348 0 # Node ID c5da110fbcba9e190c2efb43c34a86ed3243334c # Parent 185f79ad2450fe6538aefb3198e4fbe58d275ce1 [project @ 2008-02-05 17:42:28 by paulb] Added a note about specifying a context element for multiple-choice fields. diff -r 185f79ad2450 -r c5da110fbcba docs/multiple.html --- a/docs/multiple.html Tue Feb 05 17:25:31 2008 +0000 +++ b/docs/multiple.html Tue Feb 05 17:42:28 2008 +0000 @@ -276,8 +276,25 @@

The result of this should be a processed structure -document containing the type values for each type -element in that document.

+document containing the type values for each type-enum +element in that document found under the type element +(as specified in the template:multiple-choice-field +attribute).

+ +

Specifying a Context Element

+ +

Note that the feature of template:multiple-choice-field +where the context element is specified as -, meaning the +element on which the attribute for the field will be found, has +implications for the naming of the root element in the document +providing the values for a multiple-choice field: such elements need +to be named after this context element, and it is frequently less +inconvenient (and more obvious) to explicitly state a context element +instead of adopting the name of the current element from the template. +One situation where the current element might be more convenient as +the context element is where many multiple-choice fields are to be +supplied by the same document containing each range of values for all +the different fields.

Other Multiple-Choice Data