[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: Re: Re: Re: Doubled output of text nodes
From: "ashu t" <aashut@xxxxxxxxxxxxxx>
Date: 16 Jul 2002 08:49:19 -0000
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.