Re: All uses of @value

Here is yet a further analysis, while I try to get a handle of all uses of  
@value.

Note that there is a general pattern, which I will illustrate with  
setfocus. In the three different ways of being able to specify the control  
of a setfocus, the priority is:

 <setfocus><control value="'foo'"/></setfocus>
 <setfocus><control>foo</control></setfocus>
 <setfocus control="foo"/>

That is to say if you write:

 <setfocus control="A"><control value="'B'">C</control></setfocus>

then control B will be focussed on.

That is: children have precedence over attributes, and @value has  
precedence over content.

In the analysis, I have bolded comments that need discussion.

For instance, there are two cases where an element with @value doesn't  
allow content:

 <function><result>0</result></function>
 <output><mediatype>text/plain</mediatype></output>

are not allowed.

(Additionally <output>foo</output> is not allowed, but that is possibly a  
special case).

Steven

Received on Monday, 10 October 2016 14:34:51 UTC