The following code snippet is from IBM's site about doing repeats. I want to be able to style repeats.
Is there any example in the samples folder of Orbeon that shows me how to style my repeat structure. Instead of xforms | repeat, I should be able to write .xforms-repeat? thanks in advance <xhtml:style type="text/css"> @namespace xforms url("http://www.w3.org/2002/xforms"); @namespace xhtml url("http://www.w3.org/1999/xhtml"); xhtml|th { width: 240px; } xforms|repeat .xf-repeat-item { display: table-row; width: 480px; } xforms|repeat xforms|output, xforms|repeat xforms|input { display: table-cell; border: thin; border-style: solid; width: 240px; text-align: center; background-color: lightgray; } </xhtml:style> |
Administrator
|
On Mon, Mar 3, 2008 at 9:01 AM, someperson <[hidden email]> wrote:
> > The following code snippet is from IBM's site about doing repeats. I want to > be able to style repeats. > Is there any example in the samples folder of Orbeon that shows me how to > style my repeat structure. > > Instead of xforms | repeat, I should be able to write .xforms-repeat? The selected repeat has a xforms-repeat-selected-item-1 class (or -2 for the second level of nesting, and so on). This enables you to set background color on the selected repeat. Otherwise if you wish to have other classes, you might want to add them on an HTML element outside or inside the repeat. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ -- 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 |
Thanks very much.
I also managed to get one more feature working on my XForm, which was: generating tables. The challenge now is to format them and your suggestions are very timely.
|
Administrator
|
BTW, we have now (recent nightlies) implemented AVTs on XHTML
elements. So you can write things like: <xhtml:table class="zebra-table"> <xhtml:tbody> <xforms:repeat nodeset="*"> <xhtml:tr class="zebra-row-{if (position() mod 2 = 0) then 'even' else 'odd'}"> <xhtml:td> <xforms:output value="."/> </xhtml:td> </xhtml:tr> </xforms:repeat> </xhtml:tbody> </xhtml:table> That is, you can influence the style of the xhtml:tr element from XForms. -Erik On Mar 5, 2008, at 12:43 PM, someperson wrote: > > Thanks very much. > I also managed to get one more feature working on my XForm, which was: > generating tables. The challenge now is to format them and your > suggestions > are very timely. > > > > > > Alessandro Vernet wrote: >> >> On Mon, Mar 3, 2008 at 9:01 AM, someperson <[hidden email]> >> wrote: >>> >>> The following code snippet is from IBM's site about doing repeats. I >>> want to >>> be able to style repeats. >>> Is there any example in the samples folder of Orbeon that shows me >>> how >>> to >>> style my repeat structure. >>> >>> Instead of xforms | repeat, I should be able to write .xforms- >>> repeat? >> >> The selected repeat has a xforms-repeat-selected-item-1 class (or -2 >> for the second level of nesting, and so on). This enables you to set >> background color on the selected repeat. Otherwise if you wish to >> have >> other classes, you might want to add them on an HTML element outside >> or inside the repeat. >> >> Alex >> -- >> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise >> Orbeon's Blog: http://www.orbeon.com/blog/ >> Personal Blog: http://avernet.blogspot.com/ >> >> >> -- >> 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 2.0 Forms, open-source, for the Enterprise >> http://www.orbeon.com/ >> >> > > -- > View this message in context: http://www.nabble.com/is-there-any-example-of-styling-repeat-tables-tp15808390p15859715.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > > -- > 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 for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
Erik Bruchez wrote:
> BTW, we have now (recent nightlies) implemented AVTs on XHTML elements. This is very cool to hear. Do AVT's work on any attribute attached to an XHTML element, or only ones in the XHTML namespace, or only a select few attributes? The reason I ask is because I am doing RDFa with my XForms and currently I have to resort to generating my elements with xf:output with mediatype="text/html" > So you can write things like: > > <xhtml:table class="zebra-table"> > <xhtml:tbody> > <xforms:repeat nodeset="*"> > <xhtml:tr class="zebra-row-{if (position() mod 2 = 0) then > 'even' else 'odd'}"> > <xhtml:td> > <xforms:output value="."/> > </xhtml:td> > </xhtml:tr> > </xforms:repeat> > </xhtml:tbody> > </xhtml:table> > > That is, you can influence the style of the xhtml:tr element from XForms. > > -Erik -- 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 signature.asc (258 bytes) Download Attachment |
Administrator
|
>> BTW, we have now (recent nightlies) implemented AVTs on XHTML
>> elements. > > This is very cool to hear. Do AVT's work on any attribute attached > to an XHTML element, or only ones in the XHTML namespace, or only a > select few attributes? In principle it works on: * any attribute in no namespace... * which appears on an element in the XHTML namespace (except the "id" attribute, because that will mess things up)... * which is under xhtml:body Obviously one thing this can't do is create a new attribute. > The reason I ask is because I am doing RDFa with my XForms and > currently I have to resort to generating my elements with xf:output > with mediatype="text/html" So do we do enough or would you need more? -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
Erik Bruchez wrote:
>>> BTW, we have now (recent nightlies) implemented AVTs on XHTML elements. >> >> This is very cool to hear. Do AVT's work on any attribute attached to >> an XHTML element, or only ones in the XHTML namespace, or only a >> select few attributes? > > In principle it works on: > > * any attribute in no namespace... > * which appears on an element in the XHTML namespace (except the "id" > attribute, because that will mess things up)... > * which is under xhtml:body > > Obviously one thing this can't do is create a new attribute. > >> The reason I ask is because I am doing RDFa with my XForms and >> currently I have to resort to generating my elements with xf:output >> with mediatype="text/html" > > So do we do enough or would you need more? @rel, @rev, and @instanceOf Looks like my code is going to get a whole lot simpler. :) > > -Erik > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > -- 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 signature.asc (258 bytes) Download Attachment |
Free forum by Nabble | Edit this page |