> 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
|