W3C home > Mailing lists > Public > public-xformsusers@w3.org > June 2019

Binding to text nodes

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 05 Jun 2019 15:18:17 +0200
To: " XForms" <public-xformsusers@w3.org>
Message-ID: <op.z2wxwrznsmjzpq@steven-xps>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 June 2019 13:18:45 UTC