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

Re: comparing

Subject: Re: comparing
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 22 Apr 2002 17:31:28 +0200
comparing nodename in xsl
Both are wrong, you may not use '.' when adding a predicate. Use self::* or self::nodename[...] instead. The rest is ok.

Which processor are you using?

And your test can simply be written "NoofCallsDR != '0'", you don't need ".[...]".

Maybe there is a problem with the "exclusivity". If you write

<xsl:choose>
  <xsl:when test="node != '0'"></xsl:when>
  <xsl:when test="node != '0' and node2 != '0'"></xsl:when>
</xsl:choose>

the second <xsl:when> will never be accessed, because the <xsl:when>s are exclusive and the first test is more common than the second.

Regards,

Joerg

stevenson wrote:
This one works perfectly:

<xsl:when test=".[NoofCallsDR !='0']">

</xsl:when>

But this one is refusing to work:

<xsl:when test=".[NoofCallsDR !='0' and NoofCallsDJ !='0']">

</xsl:when>

What could be wrong?


--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de


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-2007 All Rights Reserved.