diff options
-rw-r--r-- | data/schemata/interface_definition.rnc | 9 |
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 |