This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSL - wierd problem

 
Brendan Kennedy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic