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

(correction) differences between x != 0 and not

Subject: (correction) differences between x != 0 and not(x = 0)
From: "Jaime Stuardo" <jstuardo@xxxxxxxxxxx>
Date: Wed, 8 Jun 2005 10:11:49 -0400
 (correction)   differences between x != 0 and not
Sorry, this is what to accomplish:

1.
<row>
  <x>0</x>
</row>
<row>
  <x>4</x>
</row>
<row>
  <x>0</x>
</row>

The test should return FALSE

2.
<row>
  <x>0</x>
</row>
<row>
  <x>0</x>
</row>
<row>
  <x>0</x>
</row>

The test should return TRUE.

That is, when ALL nodes have value of 0, I have to do something, and when at
least one x has a value different from 0, I want to do other thing. I want to
use <xsl:if>, not <xsl:choose>

Thanks
Jaime





-----Mensaje original-----
De: Jaime Stuardo
Enviado el: Miircoles, 08 de Junio de 2005 10:03
Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Asunto:  differences between x != 0 and not(x = 0)

Hi all..

I always forgot this thing.

If I want to test that all nodes has value different from 0, I have to
use x!=0 or not(x=0) ?

For example,

<row>
  <x>0</x>
</row>
<row>
  <x>4</x>
</row>
<row>
  <x>0</x>
</row>

The test for the above example should return TRUE.

<row>
  <x>0</x>
</row>
<row>
  <x>0</x>
</row>
<row>
  <x>0</x>
</row>

The test for the above example should return FALSE.

Thanks
Jaime

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.