Binding to text nodes

https://www.w3.org/community/xformsusers/wiki/XForms_2.0#Data_Binding

says:

"A control that reads simpleContent instance data must do so according to  
the type of node it is bound to:
  * The root node: an xforms-binding-error is dispatched to the control.
  * Element nodes: If element child nodes are present, then an  
xforms-binding-error is dispatched to the control. Otherwise, the  
string-value of the node is used.
  * Attribute nodes: the string-value of the node is used.
  * Text nodes: the string-value of the node is used.
  * Namespace, processing instruction, and comment nodes: behavior is  
undefined and implementation-dependent."

So binding to text-nodes is explicitely allowed.

Steven

Received on Wednesday, 5 June 2019 13:18:44 UTC