[xquery-talk] (no subject)

Florent Georges darkman_spam at yahoo.fr
Mon Feb 13 12:23:58 PST 2006


fatma helmy wrote:

> for $path in
> ("bookstore/book/title","bookstore/book/price",
> "bookstore/book/author")
> let $leafs :=
>
$bookstore//text()[string-join(ancestor-or-self::element()/node(),'/')
> eq $path]
> return

  [...]

  I don't fully understand how this works.  In place of the following:

    string-join(ancestor-or-self::element()/node(),'/') eq $path

I would have said:

    string-join(ancestor-or-self::element()/name(),'/') eq $path

  Note the 'name()' instead of the 'node()'.  Could you please explain
this a little bit further?

  Thanks.  Regards,

--drkm























	

	
		
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com


More information about the talk mailing list