Re: [xsl] check parent node

Subject: Re: [xsl] check parent node
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Tue, 29 Apr 2003 00:37:06 +0200
Mark Ivs wrote:
In the xml I have row node which is inside column node
in some cases.
In xsl what is the most efficient way to check if the
row node is a child of column ?

  <xsl:template match="row">
   <xsl:if test="parent::column">
      ...

It may be possible that you want test="ancestor::column".

J.Pietschmann


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread