This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Comparison operator



Sounds like a processor bug.   The string '0' should be automatically
converted to the number 0, although is there some reason you're not just
using a number?

By the way, the "./" is unnecessary here.  This is exactly the same thing:

   "mytag[. > 0]"

Dave



|---------+------------------------------------->
|         |           Jean.Ossmann@zas.admin.ch |
|         |           Sent by:                  |
|         |           owner-xsl-list@lists.mulbe|
|         |           rrytech.com               |
|         |                                     |
|         |                                     |
|         |           03/21/2002 09:37 PM       |
|         |           Please respond to xsl-list|
|         |                                     |
|---------+------------------------------------->
  >----------------------------------------------------------------------------------------------------------|
  |                                                                                                          |
  |        To:      XSL-List@lists.mulberrytech.com                                                          |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                                                     |
  |        Subject: [xsl] Comparison operator                                                                |
  >----------------------------------------------------------------------------------------------------------|



Hi, I am a little bit lost and couldn't find in a reasonnable time in the
references why does the following test return true with  <mytag> -1
</mytag>

<xsl:if test="./mytag[. &gt; '0']">

Thanks in advance

J. Ossmann


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list







 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]