diff options
author | Tor Brede Vekterli <vekterli@yahoo-inc.com> | 2016-07-06 17:12:03 +0200 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahoo-inc.com> | 2016-07-06 17:12:03 +0200 |
commit | 57e42988eeb2b2e27e170bb6d81e96129788d328 (patch) | |
tree | 3f36450c8294dce6e1cde09a8048a67ec17806cf /config-model/src/main/resources/schema/routing.rnc | |
parent | d44ab402271fef64bbe4c7fa0238f0168218e6b1 (diff) |
Avoid implicit whitespace normalization during attribute validation
Unless "string" is explicitly specified, token matching is used, which
will normalize whitespace before validation. Since we tend to do exact
string comparisons against DOM attributes in the model itself, this can
lead to tricky situations where the validated input is not as expected.
Diffstat (limited to 'config-model/src/main/resources/schema/routing.rnc')
-rw-r--r-- | config-model/src/main/resources/schema/routing.rnc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config-model/src/main/resources/schema/routing.rnc b/config-model/src/main/resources/schema/routing.rnc index 2ba8f11bbf3..f2812f168f1 100644 --- a/config-model/src/main/resources/schema/routing.rnc +++ b/config-model/src/main/resources/schema/routing.rnc @@ -4,7 +4,7 @@ Routing = element routing { attribute version { "1.0" } & element routingtable { - attribute protocol { "document" } & + attribute protocol { string "document" } & attribute verify { xsd:boolean }? & element hop { attribute name { text } & @@ -20,7 +20,7 @@ Routing = element routing { }* }* & element services { - attribute protocol { "document" } & + attribute protocol { string "document" } & element service { attribute name { text } }* |