This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: ../name()?
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: ../name()?
- From: "Mathias Bonnard" <mathias dot bonnard at euroclid dot fr>
- Date: Fri, 23 Jun 2000 15:12:51 +0200
- Reply-To: xsl-list at mulberrytech dot com
Jason,
>Hi. Is there a better way to get the name of an node's parent then the
>following? This works but seems awkward.
>
><xsl:for-each select='..'><xsl:value-of select='name()'/></xsl:for-each>
As name is an XPath function taking an optional nodeset argument,
<xsl:value-of select='name(..)'/>
should work.
Hope this helps.
Mathias Bonnard
Euroclid
mathias.bolnnard@euroclid.fr
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list