SAA-SDT / eac-cpf-schema

https://eac.staatsbibliothek-berlin.de/
10 stars 4 forks source link

@style #242

Closed SJagodzinski closed 2 years ago

SJagodzinski commented 3 years ago

Style

Creator of issue

  1. Silke Jagodzinski
  2. TS-EAS: EAC-CPF subgroup
  3. silkejagodzinski@gmail.com

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>

ailie-s commented 3 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

kerstarno commented 3 years ago

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 '○' '●')">

kerstarno commented 3 years ago

Tested as part of Schema Team's schema testing:

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>.

SJagodzinski commented 2 years ago

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.

fordmadox commented 2 years ago

Just pushed a fix. See https://github.com/SAA-SDT/eac-cpf-schema/pull/282/files.

kerstarno commented 2 years ago

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.