Empty element revisited

Subject: Empty element revisited
From: "Hakan Pettersson" <hakanxsl15@xxxxxxxxxxx>
Date: Thu, 04 May 2000 09:07:34 GMT
Hi,

My template looks like:
<xsl:template match="Section[@Type='32']">
	Before test<BR/>
	<xsl:if test='.=""'>
		Test OK!
		<BR/>
	</xsl:if>
	After test<BR/><BR/>
	<xsl:apply-templates select="*"/>
	<BR/>
</xsl:template>

When an empty element looks like this:

<Section DocStruc="DS69871" Type="32" Level="1">
</Section>

MSXML3 outputs:

Before test
Test OK!
After test

But Saxon outputs:

Before test
After test

When the ending tag is on the same row it works with Saxon as well.
<Section DocStruc="DS69871" Type="32" Level="1"></Section>

How do I solve it?

/Håkan
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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



Current Thread