Skip to content

Commit

Permalink
Add test case combining ns inherit and default empty
Browse files Browse the repository at this point in the history
A slightly more complex example
showing how inherit and empty (null or absent)
namespace work together
  • Loading branch information
jombr committed Aug 5, 2024
1 parent f8fa265 commit c064e23
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ns-inherit-default-empty.rnc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default namespace = ""
namespace eg = inherit
element eg:foo { element bar { attribute eg:baz { string } } }
15 changes: 15 additions & 0 deletions tests/ns-inherit-default-empty.rng
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<start>
<element>
<name>foo</name>
<element>
<name ns="">bar</name>
<attribute>
<name>baz</name>
<data type="string" datatypeLibrary=""/>
</attribute>
</element>
</element>
</start>
</grammar>

0 comments on commit c064e23

Please sign in to comment.