From 2adde14d0f096a1b38f94a8673ad9aa13a1ef4bc Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 15 Apr 2015 23:17:43 +0600 Subject: Further simplify the schema. Make extends an attribute. Remove nodeList tag. --- data/schemata/interface_definition.rnc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'data') 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 -- cgit v1.2.3