aspose file tools*
The moose likes XML and Related Technologies and the fly likes XSL - wierd problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSL - wierd problem" Watch "XSL - wierd problem" New topic
Author

XSL - wierd problem

Brendan Kennedy
Ranch Hand

Joined: May 02, 2001
Posts: 65
Ok, here's a wierd one for ya -
<xsl:when test="REVENUE/FARE/LOC_CUR=''">-</xsl:when>
This puts a '-' in every result containing a '0'. I just want it to put it in if there is no info within the tags in the xml.
Thanks,
Brendan
Brendan Kennedy
Ranch Hand

Joined: May 02, 2001
Posts: 65
And the answer is :
<xsl:when test="not(string(REVENUE/PAX_NUM))">-</xsl:when>
with whatever node I put in the origonal post inside the string brackets..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSL - wierd problem
 
Similar Threads
xsl - differentiating nodes
xsl:if and XPath
Reusing code in xsl
NBSP in Html output
Getting my HTML output to backspace one character