Skip to content

Commit

Permalink
Made a couple select/option err msgs more precise
Browse files Browse the repository at this point in the history
Addresses #47. Thanks @astorije
  • Loading branch information
sideshowbarker committed Mar 6, 2015
1 parent c588d5f commit a5eda98
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/nu/validator/checker/schematronequiv/Assertions.java
Original file line number Diff line number Diff line change
Expand Up @@ -1173,17 +1173,21 @@ private static double getDoubleAttribute(Attributes atts, String name) {
} else if ("select" == localName && node.isOptionNeeded()) {
if (!node.hasOption()) {
err("A \u201Cselect\u201D element with a"
+ " \u201Crequired\u201D attribute and without a"
+ " \u201Cmultiple\u201D attribute, and whose size"
+ " is \u201C1\u201D, must have a child"
+ " \u201Crequired\u201D attribute, and without a"
+ " \u201Cmultiple\u201D attribute, and without a"
+ " \u201Csize\u201D attribute whose value is"
+ " greater than"
+ " \u201C1\u201D, must have a child"
+ " \u201Coption\u201D element.");
}
if (node.nonEmptyOptionLocator() != null) {
err("The first child \u201Coption\u201D element of a"
+ " \u201Cselect\u201D element with a"
+ " \u201Crequired\u201D attribute and without a"
+ " \u201Cmultiple\u201D attribute, and whose size"
+ " is \u201C1\u201D, must have either an empty"
+ " \u201Crequired\u201D attribute, and without a"
+ " \u201Cmultiple\u201D attribute, and without a"
+ " \u201Csize\u201D attribute whose value is"
+ " greater than"
+ " \u201C1\u201D, must have either an empty"
+ " \u201Cvalue\u201D attribute, or must have no"
+ " text content.", node.nonEmptyOptionLocator());
}
Expand Down

0 comments on commit a5eda98

Please sign in to comment.