Skip to content

Commit

Permalink
[MOD] add optional title to rule, to facilitate svrl:fired-rule/@name;
Browse files Browse the repository at this point in the history
add optional role attribute to pattern and group, to facilitate svrl:active-*/@ROLE;
add optional role attribute to svrl:diagnostic-reference, in line with svrl:property-reference
re Schematron/schematron-enhancement-proposals#5, Schematron/schematron-enhancement-proposals#7
  • Loading branch information
AndrewSales committed Mar 9, 2024
1 parent de35269 commit a532c83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions schematron.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ rule =
& ((attribute context { pathValue },
attribute id { xsd:ID }?,
attribute abstract { "false" }?,
title?,
let*,
(assert | report | extends | p)+)))
}
Expand All @@ -168,6 +169,7 @@ abstract-rule =
& inclusion*
& (attribute abstract { "true" },
attribute id { xsd:ID },
title?,
let*,
(assert | report | extends | p)+))
}
Expand Down Expand Up @@ -222,6 +224,7 @@ foreign-element =
}
rule-set-or-pattern =
attribute documents { pathValue }?,
attribute role { roleValue }?,
rich,
(foreign
& inclusion*
Expand Down
1 change: 1 addition & 0 deletions svrl.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ fired-rule =
diagnostic-reference =
element diagnostic-reference {
attribute diagnostic { xsd:NMTOKEN },
attribute role { text }?,
human-text
}
# only failed assertions are reported
Expand Down

0 comments on commit a532c83

Please sign in to comment.