Skip to Content
0
Former Member
May 07, 2008 at 06:45 PM

Binding a structure to a node element vs binding a structure to a node

86 Views

In Section 5 of the NET310 course, SAP gives examples of getting reference to a context node, creating an element of the node, and binding a structure to the element,

In Section 8, on the other hand, SAP gives an example of binding a structure directly to a context node.

The difference seems to be that when you bind the structure to a context node in Section 8, the data is not going to be displayed ... it's just going to be passed to a consumer component.

The other difference is that in the Section 8 case, there is only one possible element of the node, so binding to the node is the same as binding to a singleton element of the node.

But I'm not sure if either of these is the right explanation.

So my questions are::

a) when can you bind to a node instead of an element of the node?

b) when should you bind to a node instead of an element of a node.