xref: /aosp_15_r20/external/libxml2/test/c14n/without-comments/merlin-c14n-two-08.xpath (revision 7c5688314b92172186c154356a6374bf7684c3ca)
1*7c568831SAndroid Build Coastguard Worker<?xml version="1.0"?>
2*7c568831SAndroid Build Coastguard Worker<XPath xmlns:bar="http://example.org/bar" xmlns:baz="http://example.org/baz" xmlns:foo="http://example.org/foo" xml:lang="en-ie">
3*7c568831SAndroid Build Coastguard Worker    (//. | //@* | //namespace::*)
4*7c568831SAndroid Build Coastguard Worker    [
5*7c568831SAndroid Build Coastguard Worker              <!-- no namespace nodes but the default on alternate elements -->
6*7c568831SAndroid Build Coastguard Worker              ancestor-or-self::bar:Something  and
7*7c568831SAndroid Build Coastguard Worker              (self::text()  or
8*7c568831SAndroid Build Coastguard Worker               (namespace-uri() != "")  or
9*7c568831SAndroid Build Coastguard Worker               ((name() = "")  and
10*7c568831SAndroid Build Coastguard Worker                ((count(ancestor-or-self::node()) mod 2) = 1)))
11*7c568831SAndroid Build Coastguard Worker    ]
12*7c568831SAndroid Build Coastguard Worker</XPath>
13