summaryrefslogtreecommitdiffstats
path: root/libxml2/test/c14n/without-comments/merlin-c14n-two-08.xpath
diff options
context:
space:
mode:
Diffstat (limited to 'libxml2/test/c14n/without-comments/merlin-c14n-two-08.xpath')
-rw-r--r--libxml2/test/c14n/without-comments/merlin-c14n-two-08.xpath12
1 files changed, 12 insertions, 0 deletions
diff --git a/libxml2/test/c14n/without-comments/merlin-c14n-two-08.xpath b/libxml2/test/c14n/without-comments/merlin-c14n-two-08.xpath
new file mode 100644
index 0000000..24fdd3f
--- /dev/null
+++ b/libxml2/test/c14n/without-comments/merlin-c14n-two-08.xpath
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<XPath xmlns:bar="http://example.org/bar" xmlns:baz="http://example.org/baz" xmlns:foo="http://example.org/foo" xml:lang="en-ie">
+ (//. | //@* | //namespace::*)
+ [
+ <!-- no namespace nodes but the default on alternate elements -->
+ ancestor-or-self::bar:Something and
+ (self::text() or
+ (namespace-uri() != "") or
+ ((name() = "") and
+ ((count(ancestor-or-self::node()) mod 2) = 1)))
+ ]
+</XPath>