xsl-list
[Top] [All Lists]

Re: operator in xsl

2003-01-31 10:21:34

Would you all give me a list of operator in xsl please!

why not just look at the Xpath spec, it's not very long.

not equals is != as you apparently guessed. Your problem is not the operator
it is the syntax, you need to give a binary operator two arguments:
 != '13' 
^
you are missing a left hand side here, and in your other three uses,
so whether you use != or = you should just get a syntax error from your
system and no output.


You probably want
 . != '13'
or normalize-space != '13'
or
. != 13

depending on which of these you think are equal to 13

<SysID>13</SysID>
<SysID> 13 </SysID>
<SysID>013</SysID>


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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



<Prev in Thread] Current Thread [Next in Thread>