commit | f6aaabce85baf48d622cb4686df810fdba3db073 | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Mar 08 16:05:26 2015 +0100 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Sun Mar 08 16:25:52 2015 +0100 |
tree | 465ce86d5a7132bfd863cede8964f3930ec2cff0 | |
parent | 620a70615e68b30db1a80a993180a41dc24f12b9 [diff] |
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.