RE: [xsl] xsk doubt [ ] vs ( )

Subject: RE: [xsl] xsk doubt [ ] vs ( )
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 25 Apr 2002 11:56:14 +0100
> i have a basic doubt regarding conditions..
> what is the difference between saying
> <xsl:if test = "not[. = mytag/mytext]">
> 
> and saying
> 
> <xsl:if test = "not(. = mytag/mytext)">
> 
> 
> when do we use the [ ] and when do we use ( )??
> regards

[] represents a filter or predicate that you apply to a node-set
() represents the arguments to a function call

"not" is a function, not a node-set, so you need ().

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

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


Current Thread