Subject: Re: Re: [xsl] Getting desired node on template match From: "alex ek" <alexek@xxxxxxxxxxxxxx> Date: 11 Sep 2002 14:40:37 -0000 |
<form action="/search" name="f"> <table cellspacing="0" cellpadding="0"> <tr> <td width="75"></td> <td align="center"> <input type="hidden" name="hl" value="en" /> <input type="hidden" name="ie" value="UTF-8" /> <input type="hidden" name="oe" value="UTF-8" /> <input maxlength="256" size="55" name="q" value="" /><br /> <input type="submit" value="Google Search" name="btnG" /> <input type="submit" value="I'm Feeling Lucky" name="btnI" /></td> <td valign="top" nowrap="nowrap"><font size="-2"> <a href="/advanced_search?hl=en">AdvancedSearch</a><br /> <a href="/preferences?hl=en">Preferences</a><br /> <a href="/language_tools?hl=en">Language Tools</a></font> </td> </tr> </table> </form>
the output it is giving (WML) this is just a portion <do type="accept" label="submit"> <go href="action"> <postfield name="name" value="$name"/> <postfield name="password" value="$password"/> <postfield name="checkbox1" value="$checkbox1"/> <postfield name="checkbox2" value="$checkbox2"/> <postfield name="checkbox3" value="$checkbox3"/> </go> </do>
<do type="accept" label="submit"> <go href="action"/> here postfield should have come </do> <do type="accept" label="submit"> <go href="action"/>here postfield should have come </do>
I hope you would not get angry . alexek
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Re: [xsl] Getting desired node , alex ek | Thread | Re: [xsl] Getting desired node on t, David Carlisle |
Re: [xsl] generalized unique elemen, Laura Jenkins | Date | RE: [xsl] generalized unique elemen, Michael Kay |
Month |