1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00
libxml2/result/XPath
Nick Wellnhofer f6aaabce85 Allow attributes on descendant-or-self axis
If the context node is an attribute, the attribute itself is on the
descendant-or-self axis. The principal node type of this axis is element,
so the only node test that can return the attribute is "node()". In other
words, "@attr/descendant-or-self::node()" is equivalent to "@attr".

This matches the behavior of Saxon-CE.
2015-03-08 16:25:52 +01:00
..
expr applied patch from Richard Jinks for the namespace axis + fixed a memory 2002-07-01 21:52:03 +00:00
tests Allow attributes on descendant-or-self axis 2015-03-08 16:25:52 +01:00
xptr uninitialized field and fix on test. Daniel 2005-08-25 14:18:56 +00:00