Re: New axes?

> 
> Why * and not node()? 

That was just an example. You would be able to use any node-test, I was just trying to clarify what the node-test would mean.

> Also how about sibling::node() as a synonym of (following-sibling::node()|preceding-sibling::node()) or (../node() except .) ?
> 

Only difficulty with that is axis direction and position. People are pretty used to the convention that the axes all radiate outwards from the context item. A function siblings() might work better. (But then you wouldn't get the handy node-test.)

Which reminds me, there's something to be said for offering all the axes as functions... 

Michael Kay
Saxonica

Received on Wednesday, 2 December 2020 09:44:57 UTC