Last active
August 29, 2015 13:59
-
-
Save avernet/10620350 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html xmlns:xf="http://www.w3.org/2002/xforms" xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Test</title> | |
<xf:model id="model"> | |
<xf:instance id="default-instance"> | |
<values xmlns=""> | |
<relevant/> | |
<value1>something</value1> | |
<value2>foo</value2> | |
</values> | |
</xf:instance> | |
<xf:bind ref="relevant" relevant="false()"/> | |
</xf:model> | |
</head> | |
<body> | |
<xf:input ref="relevant"/> | |
<xf:select ref="value1" appearance="full"> | |
<xf:item ref="/values//relevant"> | |
<xf:label>something2</xf:label> | |
<xf:value>something</xf:value> | |
</xf:item> | |
<xf:item> | |
<xf:label>some other thing</xf:label> | |
<xf:value>someotherthing</xf:value> | |
</xf:item> | |
</xf:select> | |
<xf:select1 ref="value2" appearance="full"> | |
<xf:item> | |
<xf:label>foo</xf:label> | |
<xf:value>foo</xf:value> | |
</xf:item> | |
<xf:item> | |
<xf:label>bar</xf:label> | |
<xf:value>bar</xf:value> | |
</xf:item> | |
</xf:select1> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment