Re: New axes?

On Wed, 2020-12-02 at 11:07 +0100, Christian GrĂ¼n wrote:
> An alternative would be to introduce new functions:
> 
>   fn:next-sibling($node as node()?) as node()?
>   fn:previous-sibling($node as node()?) as node()?

+1

An alternative i've sometimes wondered about might be user-defined
axes.

my:next-sibling::node()

But the fixed names of axes help to ground the language, to give a
common measure of readability.

Liam

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org

Received on Thursday, 3 December 2020 05:28:03 UTC