This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Name of current node's parent?
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Name of current node's parent?
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Thu, 4 Jan 2001 10:33:01 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Hi, I am new to the list and XSL. In an XSLT stylesheet I am
> currently
> working on, I want to compare the name of the current note's
> parent with a
> string using <xsl:if>.
If the name is known statically, use:
<xsl:if test="parent::b">
Otherwise, use
<xsl:if test="name(..)=$variable">
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list