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

Is Extra space in my XML causing a problem?

Subject: Is Extra space in my XML causing a problem?
From: "Brian Burridge" <brian_burridge@xxxxxxxxxxxxx>
Date: Fri, 09 Jun 2000 10:40:59 -0400
suppress null in xsl
I am trying to suppress a column in XSL (if the values is 'null'), but
the text I'm comparing to isn't ever matching. This used to work when my
XML tags were wrapped around the data, but now that I'm using a third
party app (XML Lightweight Extractor) to generate my XML, it
automatically puts extra space (as seen below) around the values, and
the XSL is no longer matching.

XSL:
<xsl:if test="go_live_date!='null'">
    <td><xsl:value-of select="go_live_date" />&#160;</td>
</xsl:if>

XML:
<project>
                                <number>
                                        1104
                                </number>
                                <title>
                                        Title
                                </title>
                                <department>
                                        0
                                </department>
                                <priority>
                                        1
                                </priority>
                                <description>
                                        Test
                                </description>
                                <go_live_date>
                                        null
                                </go_live_date>
                                <status>
                                        A
                                </status>
                </project>
--

Brian N. Burridge
Internet Architect
(727) 399-3000 Ext 3515
The Internet Group - ITSS
Cox Target Media

"Until a person can say deeply and honestly, "I am what I am today
because of the choices I made yesterday," that person cannot say, "I
choose otherwise."



 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.