This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsk doubt [ ] vs ( )
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 25 Apr 2002 11:56:14 +0100
- Subject: RE: [xsl] xsk doubt [ ] vs ( )
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list