Skip to content

Commit 17389d6

Browse files
committed
Remove element-based conditions from 1.0.2
1 parent 8ee2b17 commit 17389d6

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

schemas/styles/csl-choose.rnc

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,11 @@ div {
88

99
## Use to conditionally render rendering elements.
1010
element cs:choose { choose.if, choose.else-if*, choose.else? }
11-
12-
## When specifying conditions, we allow either the attribute syntax or the element-based one.
13-
choose.condition =
14-
(condition.atts, match?)
15-
| element cs:conditions { match, condition.elem+ }
16-
choose.if = element cs:if { choose.condition, rendering-element* }
11+
choose.if = element cs:if { condition+, match, rendering-element* }
1712
choose.else-if =
18-
element cs:else-if { choose.condition, rendering-element* }
13+
element cs:else-if { condition+, match, rendering-element* }
1914
choose.else = element cs:else { rendering-element+ }
20-
21-
## This element allows for more complex conditional logic; for
22-
## example, if you need to specify mixed "match" rules.
23-
condition.elem = element cs:condition { match?, condition.atts }
24-
condition.atts =
15+
condition =
2516

2617
## If used, the element content is only rendered if it disambiguates two
2718
## otherwise identical citations. This attempt at disambiguation is only

0 commit comments

Comments
 (0)