Skip to content

Instantly share code, notes, and snippets.

@orbeon
Created May 15, 2010 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orbeon/401939 to your computer and use it in GitHub Desktop.
Save orbeon/401939 to your computer and use it in GitHub Desktop.
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<head>
<xforms:model id="model1">
<xforms:instance xmlns="">
<employees>
<employee>Joe</employee>
</employees>
</xforms:instance>
</xforms:model>
<xforms:model id="model2">
<xforms:instance xmlns="">
<fruits>
<fruit>banana</fruit>
</fruits>
</xforms:instance>
<xforms:bind ref="." id="my-fruits">
<xforms:bind ref="fruit" id="my-banana"/>
</xforms:bind>
</xforms:model>
</head>
<body>
<xforms:group ref="employee">
<xforms:group bind="my-banana">
<!-- Should this show: "Joe" or "banana" ? -->
<xforms:output model="model1" ref="."/>
</xforms:group>
</xforms:group>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment