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]

RE: Performance versus legibility


> not(string(.))	string-length(.)=0
> not(x)		count(x)=0
> not(x=y)	x!=y

I just realised that the second pair of expressions aren't equivalent
either:

count(x)=0 fails if x is not a node-set, not(x) doesn't.

Optimisers have to be careful with these things!


 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]