joose,
not entirely sure, but it looks like you're talking about tranposing rows to columns?
point being you can easily have this:
choice_g1: (label g1) {radio name="g1" value="1"} (label val_1) {radio name="g1" value="2"} (label val_2) {radio name="g1" value="3"} (label val_3)
choice_g2: (label g2) {radio name="g2" value="1"} (label val_1) {radio name="g2" value="2"} (label val_2) {radio name="g2" value="3"} (label val_3)
you just want to transpose the rows to columns and place the value-indicating-labels per row in the first column, right?
all of that will need to be done inside some custom stylesheet
check out how the xslt in the samples imports and extends various parts, and do the same to add on some custom template for your specific
<fi:group> <fi:styling type="matrix">
...
</fi:group>
just yell if you need aditional help
(some investment in understanding how those xslt parts work together will surely pay back)
regards, -marc=
Joose Vettenranta wrote:
Hi again =)
CForms (woody) seems very nice, but didn't find away to do this:
line 1: {label 1} {radio name="g1" value="1"} {radio name="g2" value="1"} line 2: {label 2} {radio name="g1" value="2"} {radio name="g2" value="2"} line 3: {label 3} {radio name="g1" value="3"} {radio name="g2" value="3"}
or does that require some modification in the cforms itself?
it seems to possible to do it like this: line 1: {label 1} {radio name="g1" value="1"} {radio name="g1" value="2"} line 2: {label 2} {radio name="g2" value="1"} {radio name="g2" value="2"} line 3: {label 3} {radio name="g3" value="1"} {radio name="g3" value="2"}
but that is not doing the same thing.
Basicly, what I trying to find out, how to do "matrix" in cforms in the sence of:
labels option1 option2 option3 ... label 1 {radio1} {radio2} {radio3} ... label 2 {radio1} {radio2} {radio3} ... ....
(this is table, using tab between cells.. first row is "heading" and first column is labels. rest is radiobuttons)
and of course validationg that in some way =)
Currently using cocoon 2.1.3. but upgrading soon..
Thanks, Joose
-- "Always remember that you are unique, just like everyone else!" * http://iki.fi/joose/ * [EMAIL PROTECTED] * +358 44 561 0270 *
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
