Closed SJagodzinski closed 2 years ago
Tag Library Text:
Summary: Used to specify a rendering style for a string. It is recommended that the value conforms to W3C CSS.
Description and Usage: The @style
attribute may occur on <span>
and <list>
. In a limited number of contexts that accommodate discursive description, <span>
with @style
may be used to identify an arbitrary string that is intended to be rendered in a specific style. @style
may be used within <list>
to specify the style of a list. It is highly recommended that the value of @style
be expressed as a W3C CSS style to facilitate interoperability.
Data Type: token
Decision to introduce @style
to <list>
instead of adopting @mark
and @numeration
from EAD (see #171). Will have to be made part of EAD during revision.
Example:
<list style="list-style-type: symbols(cyclic '○' '●')">
Tested as part of Schema Team's schema testing:
@style
is an optional attribute in <span>
and <list>
The above applies to both schemas, RNG and XSD.
The attribute is ready.
@ailie-s The TL draft above currently does not account yet for the recent change to also use @style
with <list>
.
EAC-CPF meeting, 2 Dec 2021:
@fordmadox: The new "style" attribute should have a type of string, not token. CSS Style declarations can, and usually do, include meaningful whitespace characters.
Just pushed a fix. See https://github.com/SAA-SDT/eac-cpf-schema/pull/282/files.
Re-tested with the XSD and RNG schemas available in the development branch (status of 8 January 2022).
I can confirm that @style
is of type normalizedString in both schemas and that values such as e.g. "color:blue;" or "font-family: verdana;" are validating fine.
Style
@style
as optional attribute to<list>
Creator of issue
Related issues / documents
EAD3 Reconciliation
Context
Summary: Used to specify a rendering style for string. It is recommended that the value conforms to W3C CSS.
Description and Usage: The style may occur on
<span>
. In a limited number of contexts that accommodate discursive description,<span>
with style may be used to identify an arbitrary string that is intended to be rendered in a specific style. It is highly recommended that the value of style be expressed as a W3C CSS style to facilitate interoperability.Data Type: string
Solution documentation
Rephrasing Summary and Description and Usage needed?
May occur within:
<list>
,<span>
Example encoding
<p><span style="font-style:bold">Header</span>extended desription of biography or history</p>