Home | History | Annotate | Download | only in exc-without-comments
      1 <?xml version="1.0"?>
      2 <XPath xmlns:bar="http://example.org/bar" xmlns:baz="http://example.org/baz" xmlns:foo="http://example.org/foo" xml:lang="en-ie">
      3     (//. | //@* | //namespace::*) 
      4     [ 
      5               <!-- only text, elements or directly-used namespace nodes -->
      6               ancestor-or-self::bar:Something  and
      7               ((name() != "bar") or parent::bar:Something)  and
      8               ((name() != "foo") or parent::foo:Something)  and
      9               ((name() != "baz") or parent::baz:Something)  and
     10               ((name() != "") or self::text())
     11     ]
     12 </XPath>
     13