File: example-8.xpath

package info (click to toggle)
ruby-libxml 2.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,964 kB
  • ctags: 2,319
  • sloc: xml: 8,711; ansic: 8,472; ruby: 7,563; makefile: 3
file content (10 lines) | stat: -rw-r--r-- 252 bytes parent folder | download | duplicates (9)
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>