Re: [xsl] comparing

Subject: Re: [xsl] comparing
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 22 Apr 2002 17:31:28 +0200
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