Open ebruchez opened 3 weeks ago
This is not a new issue. I repro it on 2023.1-pe, master, and user reported on 2021.1.x (I think).
Fails in a simple example with xxf:xpath-analysis="true"
.
<xh:html
xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xh:head>
<xf:model xxf:expose-xpath-types="true" xxf:xpath-analysis="true">
<xf:instance>
<_ xmlns="">
<show>false</show>
<value/>
</_>
</xf:instance>
<xf:bind ref="show" type="xs:boolean"/>
<xf:bind ref="value" calculate="42" relevant="../show = true()"/>
<xf:setvalue event="xforms-disabled" observer="value-input" ref="event('xxf:binding')"/>
</xf:model>
</xh:head>
<xh:body>
<xf:input ref="show">
<xf:label>Toggle visibility</xf:label>
</xf:input>
<xf:input ref="value" id="value-input">
<xf:label>Value</xf:label>
</xf:input>
</xh:body>
</xh:html>
+1 from customer
See form: