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

Re: Unique html name, id, and for form fields

Subject: Re: Unique html name, id, and for form fields
From: Jeremy Marzka <jmarzka@xxxxxxxxx>
Date: Wed, 11 May 2005 12:47:42 -0400
html form name
Thanks for your response Omprakash.V.

To have a form for each action is not an option. That would require at
least 6 forms. The solution I would prefer would be to determine which
Go button was clicked then use something simular to .net's findcontrol
to find the value of the select box for that row using only one form.

So really all my xsl translation needs to do is generate unique id's,
name's, and for's for every element inside a for-each.

Taken from (http://www.w3.org/TR/xhtml1/):
Note that the collection of legal values in XML 1.0 Section 2.3,
production 5 is much larger than that permitted to be used in the ID
and NAME types defined in HTML 4. When defining fragment identifiers
to be backward-compatible, only strings matching the pattern
[A-Za-z][A-Za-z0-9:_.-]* should be used. See Section 6.2 of [HTML4]
for more information.

Thanks
Jeremy

On 5/11/05, Touchtel <omprakashv@xxxxxxxxxxxxxxxxx> wrote:
>     Hi,
>         Haven't had the chance to go through your mail fully. But your
> requirement is usually handled in the following way. Have a different form
> with a distinct name for each action for e.g your form for the Approved
> action would be called "ApprovedForm" etc and each select box would be a
> part of that form. Then in the onClick event of your 'Go' button, you
submit
> the form. I know this can be done in java and Iam sure there is a way to do
> this in ASP.NET. I presume you are using .NET since you call your form
> action as transform.aspx.  But that would not be an XSLT question per se so
> if you'd like more help on that you can mail me off-list and I will try and
> help you. This should simplify your problem quite a bit if it is possible
> for you to adopt this approach.
>
>  Also, you have value/names like
"status_table_2:ac_request_1:action_list_3"
> etc which Iam not sure is allowed. The ":" is a reserved word used to
> specify namespaces in xml documents and using  that as part of your field
> names  could (will :->) throw your parser out of gear I think.
>
>   Cheers,
>    Omprakash.V

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.