This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Re: Re: Doubled output of text nodes


The biggest problem
is that you have no means of telling a template that several checkbox
inputs form a group, rather than a set of individual controls.

Unlike the radio input, where a group of them share the same name, there
is nothing about the controls themselves which mark them as a group of
related items. Since you have no control over how it comes in, you can't
count on any external grouping element (e.g., div, fieldset)to signify
that the checkbox inputs are related. Once you solve that, the template
will be very similar to the radio input template.
yes you are right .
the problem is that i do not have control on input
that's why grouping is difficult.
but even if i know the input for example the html file has

<form method="POST" action="urlToInvoke">
<p>Specify your music preferences (check all that apply):</p>

<p><input type="checkbox" name="musicpref_rnb" checked="checked" />R&amp;B<br />
<input type="checkbox" name="musicpref_jazz" checked="checked" />Jazz<br />
<input type="checkbox" name="musicpref_blues" />Blues<br />
<input type="checkbox" name="musicpref_newage" />New Age</p>

<p>Choose a Category of Room:</p>

<div style="margin-left: 2em"><input type="radio" name="category" value="liv" checked="checked" /> Living<br />
<input type="radio" name="category" value="din" /> Dining<br />
<input type="radio" name="category" value="bed" /> Bedroom</div>
</form>

i tried different condition in template match=form to get
<do label="submit" type="accept">
<go href="some url" method="post/get">
<postfield name="{@name}" value="{@value}">
some more postfields......................
</go>
</do>
but not getting it correctly even i tried for radio only but not getting it correctly.
could you please tell me the correct stylesheet as any combination of mine is not giving correct output.
ashu
_________________________________________________________
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.rediff.com/jobs


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]