diff options
Diffstat (limited to 'schema/interface_definition.rnc')
-rw-r--r-- | schema/interface_definition.rnc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/schema/interface_definition.rnc b/schema/interface_definition.rnc index 0ce8226cd..6647f5e11 100644 --- a/schema/interface_definition.rnc +++ b/schema/interface_definition.rnc @@ -57,14 +57,18 @@ tagNode = element tagNode # but can have values. # Leaf node may contain one or more valueConstraint tags # If multiple valueConstraint tags are used, they work a logical OR -# Leaf nodes can have "multi" attribute that indicated that it can have -# more than one value +# Leaf nodes can have "multi" attribute that indicated that it can have more than one value +# It can also have a default value leafNode = element leafNode { (ownerAttr? & nodeNameAttr), - properties + (defaultValue? & properties) } +# Default value for leaf node, if applicable +# It is used to generate default node state representation +defaultValue = element defaultValue { text } + # Normal and tag nodes may have children children = element children { |