One thing
I have put the wrong text in that <go href>
it was actually <go href="{(_at_)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[(_at_)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[(_at_)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