public
Created

  • Download Gist
gistfile1.xml
XML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
<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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.