summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-04-15 23:17:43 +0600
committerDaniil Baturin <daniil@baturin.org>2015-04-15 23:17:43 +0600
commit2adde14d0f096a1b38f94a8673ad9aa13a1ef4bc (patch)
tree844e88956d9cffe7932c0fa8ff5aea0a21c26264 /data
parenta1d9335edd1e14b62c3705be2cf2aa063be3b44c (diff)
downloadvyconf-2adde14d0f096a1b38f94a8673ad9aa13a1ef4bc.tar.gz
vyconf-2adde14d0f096a1b38f94a8673ad9aa13a1ef4bc.zip
Further simplify the schema.
Make extends an attribute. Remove nodeList tag.
Diffstat (limited to 'data')
-rw-r--r--data/schemata/interface_definition.rnc9
1 files changed, 5 insertions, 4 deletions
diff --git a/data/schemata/interface_definition.rnc b/data/schemata/interface_definition.rnc
index fdecfd4..a20207b 100644
--- a/data/schemata/interface_definition.rnc
+++ b/data/schemata/interface_definition.rnc
@@ -22,15 +22,16 @@
# (unless converted to XML, then just RELAX-NG :)
# Interface definition starts with interfaceDefinition tag that may contain node tags
-# It also may contain "extends" tags, if nodes must be appended to certain path
start = element interfaceDefinition
{
- extends*, nodeList
+ extendsAttr?, node*
}
-nodeList = element nodeList
+# Interface definitions may extend other definitions
+# In this case you specify a whitespace-separated path
+extendsAttr = attribute extends
{
- node*
+ text
}
# Extends tag defines path prepended to the nodes