[thelist] [XSL] Parent Node Name

Howard Cheng howcheng at ix.netcom.com
Tue Apr 30 16:55:01 CDT 2002


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