[xquery-talk] xQuery beginner Question

Michael Rys mrys at microsoft.com
Fri Jun 2 13:56:23 PDT 2006


The first one gets you the first two instruments at every level below
$b, the second one gets you the first two instruments of all the
instruments below $b.

Basically [] binds stronger than /.

Best regards
Michael

> -----Original Message-----
> From: talk-bounces at xquery.com [mailto:talk-bounces at xquery.com] On
Behalf
> Of Kusunam, Srinivas
> Sent: Friday, June 02, 2006 12:50 PM
> To: talk at xquery.com
> Subject: [xquery-talk] xQuery beginner Question
> 
> Hi,
> 
> 	This is my first post here. I have just started experimenting
> with xQuery and I have small question what is difference between these
> 2.
> 
> 	$b//instrument[position()<=2]
> 	($b//instrument)[position()<=2]
> 
> Thanks,
> Sri
> *****************************************************************
> This message has originated from RLPTechnologies,
> 26955 Northwestern Highway, Southfield, MI 48034.
> 
> RLPTechnologies sends various types of email
> communications.  If this email message concerns the
> potential licensing of an RLPT product or service, and
> you do not wish to receive further emails regarding Polk
> products, forward this email to Do_Not_Send at rlpt.com
> with the word "remove" in the subject line.
> 
> The email and any files transmitted with it are confidential
> and intended solely for the individual or entity to whom they
> are addressed.
> 
> If you have received this email in error, please delete this
> message and notify the Polk System Administrator at
> postmaster at rlpt.com.
> *****************************************************************
> 
> 
> _______________________________________________
> talk at xquery.com
> http://xquery.com/mailman/listinfo/talk



More information about the talk mailing list