huangcm
2025-02-24 69ed55dec4b2116a19e4cca4393cbc014fce5fb2
1
2
3
4
5
6
7
8
9
10
<XPath xmlns:ietf="http://www.ietf.org" >
    (//.|//@*|//namespace::*)
    [
   self::ietf:e1
       or
   (parent::ietf:e1 and not(self::text() or self::e2))
       or
   count(id("E3")|ancestor-or-self::node()) = count(ancestor-or-self::node())
    ]
</XPath>