Re: [xsl] Getting desired node on template match

Subject: Re: [xsl] Getting desired node on template match
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Mon, 09 Sep 2002 19:44:31 +0200
alex ek wrote:
<xsl:template match="input[@type='submit']">
<do type ="accept" label="submit">
<go href="ancestor::form[1][{@action}]"> <!--HERE I ACTUALLY WANT TO TAKE THE VALUE OF ACTION ATTRIBUTE OF FORM FOR HREF AND METHOD FROM METHOD OF FORM (initially tried for action only)BUT NOT GETTING HOW TO RETRIVE THAT -->

Putting some random stuff into a file and then shouting around because it doesn't do what you think it should do is a very inefficient way to solve problems. Get a good book about XSLT. The XSLT FAQ has a few pointers. Perhaps buy Jeni Tennison's "Beginning XSLT" (ISBN 1861005946) and take a week or two to work through it. You'll be much more effective afterwards.

J.Pietschmann



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


Current Thread