Skip to content

Commit 93c87d7

Browse files
committed
Add test case combining ns inherit and default empty
A slightly more complex example showing how inherit and empty (null or absent) namespace work together
1 parent 448d891 commit 93c87d7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tests/ns-inherit-default-empty.rnc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
default namespace = ""
2+
namespace eg = inherit
3+
element eg:foo { element bar { attribute eg:baz { string } } }

tests/ns-inherit-default-empty.rng

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
3+
<start>
4+
<element>
5+
<name>foo</name>
6+
<element>
7+
<name ns="">bar</name>
8+
<attribute>
9+
<name>baz</name>
10+
<data type="string" datatypeLibrary=""/>
11+
</attribute>
12+
</element>
13+
</element>
14+
</start>
15+
</grammar>

0 commit comments

Comments
 (0)