Skip to content
Open
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions schemas/styles/csl.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ div {
attribute variable {
list { variables.names+ }
},
related,
affixes,

## Specify the delimiter for name lists of name variables rendered by
Expand Down Expand Up @@ -690,6 +691,7 @@ div {
date.form,
rendering-element.date.date-part.localized*)
| (rendering-element.date.date-part.non-localized+, delimiter)),
related,
affixes,
display,
font-formatting,
Expand Down Expand Up @@ -777,10 +779,12 @@ div {
## Specify verbatim text.
attribute value { text }
| ((attribute variable { variables.numbers | variables.strings },
[ a:defaultValue = "long" ] attribute form { "short" | "long" })
[ a:defaultValue = "long" ] attribute form { "short" | "long" },
related)
| (attribute variable { variables.titles },
[ a:defaultValue = "long" ]
attribute form { "short" | "long" | "sub" | "main" })?)
attribute form { "short" | "long" | "sub" | "main" },
related)?)
}
# ==============================================================================

Expand All @@ -803,7 +807,10 @@ div {
## Number forms: "numeric" ("4"), "ordinal" ("4th"), "long-ordinal"
## ("fourth"), "roman" ("iv").
[ a:defaultValue = "numeric" ]
attribute form { "numeric" | "ordinal" | "long-ordinal" | "roman" }?
attribute form {
"numeric" | "ordinal" | "long-ordinal" | "roman"
}?,
related
}
# ==============================================================================

Expand Down Expand Up @@ -846,7 +853,8 @@ div {
delimiter,
display,
font-formatting,
rendering-element+
rendering-element+,
related
}
group.attributes = notAllowed?
}
Expand Down Expand Up @@ -1136,6 +1144,11 @@ div {
always-render = attribute always-render { xsd:boolean }?
}

## Select a related-variable
div {
related = attribute related { "original" | "reviewed" }?
}

## Formatting attributes.
div {
affixes =
Expand Down