This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Empty element revisited
- To: xsl-list at mulberrytech dot com
- Subject: Empty element revisited
- From: "Hakan Pettersson" <hakanxsl15 at hotmail dot com>
- Date: Thu, 04 May 2000 09:07:34 GMT
- Reply-To: xsl-list at mulberrytech dot com
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