|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








