[Xsltforms-support] Implementation of switch / selected="true" behaviour
Brought to you by:
alain-couthures
From: Jochen R. <j.r...@gm...> - 2009-07-22 14:02:58
|
Hi Alain, You probably know this already, I just send you this as a reminder that it get's not lost in the current development roadmap: I tested some examples of the XForms Wikibook against Mozilla-0.87-pre and XsltForms (2 days old SVN Snapshot ) and noticed that the "switch" behaviour is different: Example: <xf:*switch*> <xf:*case *id="1" selected="true">1</xf:case> <xf:*case *id="2" selected="true">2</xf:case> <xf:*case *id="3">3</xf:case> </xf:*switch*> Missing behaviour 1: If no select attribute is present, according to the Spec the first case should be activated: See: http://www.w3.org/MarkUp/Forms/specs/XForms1.1/index-all-20090604.html#ui-switch-module-> Point: 9.2.2 Missing behaviour 2: If multiple selected="true" attributes are present, the first one shall be activated. Here the 2 real-world examples from the Wikibook: http://en.wikibooks.org/wiki/XForms/Switch_and_Case http://en.wikibooks.org/wiki/XForms/Show-Hide_Controls Xsltforms Rocks !!! Regards Rusco |