When you mark a group's appearance as xxforms:internal, and the group is
not relevant, the contents of the group are still rendered. I'm not sure if this was by design or not. <xhtml:html xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <xhtml:head> <xforms:model id="model" version="1.1"> <xforms:instance id="inst"> <Root> <Node1 att1="abc"/> </Root> </xforms:instance> </xforms:model> <xhtml:title>Internal Group Relevant Test</xhtml:title> </xhtml:head> <xhtml:body> <xhtml:div>Page Body</xhtml:div> <xhtml:hr/> <xforms:group ref="instance('inst')/Node1[@att1='abc']" appearance="xxforms:internal">You should see this text</xforms:group> <xhtml:br/> <xforms:group ref="instance('inst')/Node1[@att1='abcd']" appearance="xxforms:internal">You should not see this text</xforms:group> <xhtml:hr/> <xforms:group ref="instance('inst')/Node1[@att1='abc']">You should see this text</xforms:group> <xhtml:br/> <xforms:group ref="instance('inst')/Node1[@att1='abcd']">You should not see this text</xforms:group> </xhtml:body> </xhtml:html> -- ------------------------------------------------------------------------ Jeremy Nix Senior Application Developer Cincinnati Children's Hospital Medical Center -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Jeremy,
The appearance="xxforms:internal" indicates that the xforms:group is not "materialized" in the generated HTML, i.e. no element in generated for that xforms:group. So you can't use it on a group which sometimes needs to be hidden, as hiding the group is done by adding a class on the HTML element corresponding to the xforms:group, which in this case doesn't exist since you asked for no element to be generated. The appearance="xxforms:internal" is often used when you want to put an event listener around a number of controls. In that case you need a xforms:group around those controls, but also having an HTML produced in the page would be a waste as it isn't necessary in that case. Alex On Tue, Apr 6, 2010 at 9:17 AM, Jeremy Nix <[hidden email]> wrote: > When you mark a group's appearance as xxforms:internal, and the group is not > relevant, the contents of the group are still rendered. I'm not sure if > this was by design or not. > > > <xhtml:html xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> > <xhtml:head> > <xforms:model id="model" version="1.1"> > <xforms:instance id="inst"> > <Root> > <Node1 att1="abc"/> > </Root> > </xforms:instance> > </xforms:model> > <xhtml:title>Internal Group Relevant Test</xhtml:title> > </xhtml:head> > <xhtml:body> > <xhtml:div>Page Body</xhtml:div> > <xhtml:hr/> > <xforms:group ref="instance('inst')/Node1[@att1='abc']" > appearance="xxforms:internal">You should see this text</xforms:group> > <xhtml:br/> > <xforms:group ref="instance('inst')/Node1[@att1='abcd']" > appearance="xxforms:internal">You should not see this text</xforms:group> > <xhtml:hr/> > <xforms:group ref="instance('inst')/Node1[@att1='abc']">You should see this > text</xforms:group> > <xhtml:br/> > <xforms:group ref="instance('inst')/Node1[@att1='abcd']">You should not see > this text</xforms:group> > </xhtml:body> > </xhtml:html> > > -- > ------------------------------------------------------------------------ > Jeremy Nix > Senior Application Developer > Cincinnati Children's Hospital Medical Center > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |