Created
May 31, 2012 18:09
-
-
Save ebruchez/2845126 to your computer and use it in GitHub Desktop.
Repro case for #278
This file contains 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
<xh:html xmlns:xf="http://www.w3.org/2002/xforms" | |
xmlns:xh="http://www.w3.org/1999/xhtml" | |
xmlns:xxf="http://orbeon.org/oxf/xml/xforms" | |
xmlns:ev="http://www.w3.org/2001/xml-events" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xh:head> | |
<xf:model> | |
<xf:instance id="instance"> | |
<instance> | |
<original>Initial</original> | |
<copy/> | |
</instance> | |
</xf:instance> | |
</xf:model> | |
</xh:head> | |
<xh:body> | |
<xf:switch> | |
<xf:case id="first"> | |
<xf:trigger appearance="minimal"> | |
<xf:label>Switch</xf:label> | |
<xf:toggle ev:event="DOMActivate" case="second"/> | |
</xf:trigger> | |
<xf:input ref="original"> | |
<xf:setvalue ev:event="xforms-value-changed" ref="../copy" value="../original"/> | |
</xf:input> | |
(should update copy) | |
</xf:case> | |
<xf:case id="second"> | |
<xf:trigger appearance="minimal"> | |
<xf:label>Switch</xf:label> | |
</xf:trigger> | |
<xf:input ref="original"/> | |
(should NOT update copy) | |
</xf:case> | |
</xf:switch> | |
</xh:body> | |
</xh:html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment