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

Re: Re: Getting desired node on template match

Subject: Re: Re: Getting desired node on template match
From: "alex ek" <alexek@xxxxxxxxxxxxxx>
Date: 9 Sep 2002 09:31:35 -0000
alex ek
One thing

I have put the wrong text in that <go href>
it was actually <go href="{@action}">
i was trying a different combination and run the program with that text and got the error and pasted that output. but even with this output is same just putting <go href=""> in place of that which i posted in earlier mail.
BUT THIS IS ALSO NOT WORKING .
HOW TO GET ACTION AND METHOD FROM FORM
alex







On Fri, 06 Sep 2002 J.Pietschmann wrote :
alex ek wrote:
How can i do so that on template match="input[@type='submit']" it
traverses every input type between the same <form> and </form>
and retrive name ,value.

I'm not quite sure what you mean, perhaps <xsl:template match="input[@type='submit']"> <xsl:for-each select="ancestor::form[1]//input> <xsl:value-of select="@name"/> <xsl:value-of select="@value"/> </xsl:for-each> </xsl:template> This gets the nearest form ancestor of the matched input field and uses all descendent inputs, including the matched. Be careful if you have - nested forms - multiple submits per form

J.Pietschmann


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




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.