xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor