Subject: Re: Re: [xsl] Getting desired node on template match From: "alex ek" <alexek@xxxxxxxxxxxxxx> Date: 9 Sep 2002 09:01:08 -0000 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting desired node on t, J.Pietschmann | Thread | Re: [xsl] Getting desired node on t, J.Pietschmann |
RE: [xsl] Newbie: template match us, Palmer Magnus | Date | Re: [xsl] Newbie: template match us, Jeni Tennison |
Month |