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: Scalar -> node-set conversion (was How to distinguish b/n a scala r and a node-set)


> Dmitre wrote:
> 
> > This is a good idea and it actually works in MSXML 3:
> >
> > count(node-set(nodeSet) | node-set(nodeSet)) returns 1.  
> > count(node-set(Scalar) | node-set(Scalar)) returns 2.  
> >
> > Unfortunately, Saxon always returns 1.

Actually, I'm getting the answer 2 when I run this in Saxon. Though I don't
think this is a particularly good thing: in principle, running the same
function twice with the same argument should produce the same result;
otherwise optimizations are likely to go wrong.
> >
> > Also, I've heard that the standard node-set() function in 
> XSLT 1.1 will throw error when passed a scalar argument.

It is currently proposed that RTF->nodeset conversion should be implicit in
XSLT 1.1, but there has been no proposal to allow string->nodeset
conversion.

Mike Kay
> 


 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]