[thelist] [XSL] Parent Node Name -- SOLVED

Howard Cheng howcheng at ix.netcom.com
Tue Apr 30 17:18:01 CDT 2002


Got it. It was <xsl:value-of select="name(parent::node())" />.

At 02:54 PM 4/30/2002 -0700, you wrote:
>This should be easy, but I can't seem to find the answer anywhere. I'm
>trying to get the name of a node's parent node.
>
>For example:
>
><xsl:value-of select="name()" /> -- gets the current node's name
>
><xsl:value of select="../name()" /> -- looks like it should get the parent
>node's name, but this only gets me an error. Is this correct syntax? Or
>perhaps something is wrong with the XML.
>
>Thanks.

::::::::::::::::::::::
Howard Cheng
howcheng at ix.netcom.com
AIM: bennyphoebe
ICQ: 47319315




More information about the thelist mailing list