Geert Josten wrote:

> > for $v in
> > $sampleArticle/article/article-meta/related-article/@xlink:href
> > return fn:data($v)

> If this is all you do in the for loop, then you can skip the
> for loop. The fn:data function accepts sequences..

  This is a matter of taste, but for such expressions, I like the
following idiom:

    $sampleArticle/.../related-article/@xlink:href/data(.)

  The drawback is that you become frustrated when you try to
apply the same idiom to a sequence of atomic values ;-)

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/


























_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to