This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

XPATH expression, first child of node


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]