XPATH expression, first child of node

Subject: XPATH expression, first child of node
From: "xsl list" <xsl_list@xxxxxxxxxxx>
Date: Wed, 30 Aug 2000 09:59:31 EDT
In the xsl template I want to test if TR is the first TR child of TABLE or the first TR decendent of the first child of TABLE that is not TLT. How would I write such an expression?
In the below example, OTHER_TAG is optional and can be any tag.
<TABLE>
<TLT/>
<OTHER_TAG>
<TR/>
</OTHER_TAG>
<TR/>
</TABLE>


<xsl:template match="TR">
	<xsl:if test="***EXPRESSION***"/>
</xsl:template>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at http://profiles.msn.com.


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



Current Thread