Preview. Built from the published NewsML-G2 documents by tools/prosedoc. This layout is a harness for reviewing structure — it is not the published site.
12. Dealing with Labels and Blocks
12.1. Introduction
Labels are assertions that expose aspects of news, expressed as natural language strings intended to be consumed by human beings. They are typically displayed alongside the content of an Item or in place of Items in a list, providing a means of selection among them.
Blocks are simply labels with an additional line break. They are primarily used for notes, comments or instructions created by a news provider for use by recipient editorial teams.
Labels and blocks MAY have a role attribute, which refines the semantics of the property.
Labels and blocks MAY have a media attribute. When present, the value MUST conform to the CSS (Cascading Style Sheets) specification. Several media types can be given as space separated values.
All labels and blocks support rich text, that is text interspersed with some specific markup, identical to XHTML1.1 markup: the anchor a for the inclusion of hyperlinks, the span as a generic mechanism for adding information to text, simple ruby markup used in Japanese publications and inline for semantic inline markup.
The inline property identifies a concept present in a label or block either by a qualified code (qcode) or a literal value, plus an optional type. Additional information about this concept can be represented using an assert property value, plus a basic set of properties defining the concept.
12.2. Internationalization Attributes
In an international news workflow, fine grained control of language information is needed for the hierarchy of nodes that constitutes an Item.
For this purpose, all labels – and all ancestors of such an element – share an International Attributes Group, which includes an optional language tag (xml:lang) and indication of the directionality of textual content (dir).