Subject: Re: [xsl] What the default datatype of an stylesheet parameter ? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Fri, 25 Nov 2011 10:48:46 +0000 |
When the types are not the same, the processor reduces one or both of the sides to a common type. The empty sequence is boolean false, and the empty string is boolean false, so when both are converted to boolean, they are the same.Not quite. In XSLT 2.0, '=' compares all pairs of values across the two sequences. If there are no pairs, the result is always false. If there are pairs, untypedAtomic values are converted to the other type, and numeric promotion takes place, but you certainly won't see both sides converted to booleans.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] What the default datatype, G. Ken Holman | Thread | Re: [xsl] What the default datatype, G. Ken Holman |
Re: [xsl] What the default datatype, Michael Kay | Date | Re: [xsl] What the default datatype, G. Ken Holman |
Month |