Subject: Re: [xsl] how to find parent node From: xslt.new <xslt.new@xxxxxxxxx> Date: Tue, 23 Jan 2007 09:23:33 -0600 |
> And I want to find out the parent of test1 in the <test1> template > itself. I tried <xsl:value-of select="name(parent::*)"/>. This works > only if <test1> is directly under <element1> and not under <para> >
why do you say it doesn't work under para? If you execute that code when the current element is the test1 eleemnt in your example, it will return "para" which is the name of the parent. (although actually it's usually a bad idea to use the name() function)
David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to find parent node, David Carlisle | Thread | Re: [xsl] how to find parent node, David Carlisle |
Re: [xsl] XSLT 2.0 has arrived, Mukul Gandhi | Date | Re: [xsl] XSLT 2.0 has arrived, Mohsen Saboorian |
Month |