Re: [Xsltforms-support] Implementation of switch / selected="true" behaviour
Brought to you by:
alain-couthures
From: Rusco <j.r...@gm...> - 2009-09-09 08:36:37
|
Thank you Alain, your latest patch fixes the troubles I had with case statements. There is still the cornercase of multiple - selected = "true" - statements outstanding, but this is really low prio. What about promoting the current trunk to a new relase ? Best Regards Rusco. 2009/7/22 <j.r...@gm...> > 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 > > > |