[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Empty element revisited

Subject: Empty element revisited
From: "Hakan Pettersson" <hakanxsl15@xxxxxxxxxxx>
Date: Thu, 04 May 2000 09:07:34 GMT
Empty element revisited
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.