RE: [xsl] not getting expected matches

Subject: RE: [xsl] not getting expected matches
From: "Crouch, Luke H." <Luke.Crouch@xxxxxxxxxxx>
Date: Thu, 16 Sep 2004 12:47:34 -0500
okay, now, here is my whole stylesheet:

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:rm="http://red-man.com/namespace";>
	<xsl:template match="text()">
	</xsl:template>
	<xsl:template match="/">
		<xsl:apply-templates/>
	</xsl:template>
	<xsl:template match="*[starts-with(local-name(), 'SEG')]/rm:NAME">
		<xsl:value-of select="."/><xsl:text>*</xsl:text>
	</xsl:template>
	<xsl:template match="*[starts-with(local-name(), 'ELE')]">
		<xsl:value-of select="."/><xsl:text>*</xsl:text>
		<!-- put a line break after last 'ELE' element -->
		<xsl:if test="">
			<xsl:text>
</xsl:text>
		</xsl:if>
	</xsl:template>
</xsl:stylesheet>

but I don't know how to format the xsl:if test to check to see if this ELE tag
is the last ELE tag under the SEG tag...how would I do that?

thanks again,
-L

Current Thread