From fdb72e552a6d0d9e0573c0eb9aa3afa5e27c776a Mon Sep 17 00:00:00 2001 From: rakhimov Date: Sat, 19 Aug 2017 00:38:07 -0700 Subject: [PATCH] Replace 'Boolean-value' with 'xsd:boolean' XML schema provides the Boolean datatype, which allows "true", "false", "0", "1" for values. This datatype can be used instead of custom 'Boolean-value' specification. The current 'Boolean-value' appears only on the schema, so the replacement with 'xsd:boolean' will be backwards compatible. --- mef/schema/expressions.rnc | 2 +- mef/schema/formula.rnc | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mef/schema/expressions.rnc b/mef/schema/expressions.rnc index d0a65ce..7c48886 100644 --- a/mef/schema/expressions.rnc +++ b/mef/schema/expressions.rnc @@ -32,7 +32,7 @@ constant = bool | int | float bool = element bool { - attribute value { Boolean-value } + attribute value { xsd:boolean } } int = diff --git a/mef/schema/formula.rnc b/mef/schema/formula.rnc index 9d522ea..faba1d8 100644 --- a/mef/schema/formula.rnc +++ b/mef/schema/formula.rnc @@ -38,7 +38,5 @@ basic-event = element basic-event { reference } Boolean-constant = element constant { - attribute value { Boolean-value } + attribute value { xsd:boolean } } - -Boolean-value = "true" | "false"