Variable

From W3C XForms Group Wiki (Public)
Jump to: navigation, search

This is a placeholder for the <xforms:variable> feature.

Closely allied with AVT

Erik's notes:

Proposal

  • You can define variables everywhere outside xf:model, as a child of model or as as child of an xforms action (even if it is in the model)
    • Scoping:
      • A given variable is visible to any XPath expression on a following sibling element or on a following sibling element's descendant element.
      • Model variables are also visible from XPath expression outside of models whenever that model is in scope.
  • Binds automatically create variables with their id as name of the variable -> Sounds really handy, but not yet sure where the variables should be available


See Variables_in_XPath