Question about self axis

Hi,

suppose following document (X-Hive example):

<?xml version="1.0" encoding="ISO-8859-1"?>
<ma:AuctionWatchList xmlns:ma="http://www.example.com/AuctionWatch" 	xmlns:xlink="http://www.w3.org/1999/xlink" 	xmlns:anyzone="http://www.example.com/auctioneers#anyzone" 	xmlns:eachbay="http://www.example.com/auctioneers#eachbay" 	xmlns:yabadoo="http://www.example.com/auctioneers#yabadoo">
  <ma:Auction anyzone:ID="0321K372910">
...

and consider this XQuery:

//ma:Auction/@anyzone:ID/self::*

In my understanding this should yield:

anyzone:ID="0321K372910"

because the NameTest "*" matches the attribute name, as well as self::*:*, self::*:ID, self::anyzone:* and self::anyzone:ID.

Is that right? Can one say that each node that has a node-name no matter what type of node it is, would yield a similar result?

Thanks & Cheers,
Daniel     
 

Received on Friday, 19 March 2004 03:41:19 UTC