<LML /> 2.0 - Common Attributes Module

specification

Author: Dr. O. Hoffmann (German web-page)

This module belongs to the Literature Markup Language Version 2.0

Changes

There are three new attributes in LML 2.0 indicated in the element index with (v2).

Attribute-Index

Complete Element and Attribute Index

Common Attributes

Some attributes are assumed to be available both in LML and in the host language for any element, if another language is used as host language.

XML attributes

xmlns

Description

xmlns[:prefix] = "resource-name"

Standard XML attribute to identify an XML namespace. This attribute makes the related namespace available for the current element (and its children, if they are not related to another namespace).

Relations

xml:id

Description

xml:id = "unique identifier"

Standard XML attribute for assigning a unique name to an element.

If the host language provides only its own identifier like id, this can be used too, but for LML xml:id is preferred. In doubt both attributes can be noted with the same value.

Relations

xml:lang

Description

xml:lang = "language identifier"

Standard XML attribute to specify the language (for example 'en' for english or 'de' for german) used in the contents and attribute values of particular elements.

If the host language provides only its own identifier like lang, this can be used too, but for LML xml:lang is preferred. In doubt both attributes can be noted with the same value.

Relations

xml:space

Description

xml:space = "default" | "preserve"

Standard XML attribute to specify whether white space is preserved in character data.

Relations

xml:base

Description

xml:base = "base URI or IRI"

Standard XML attribute to specify a base URI other than the base URI of the document or external entity.

Relations

Attributes derived from XHTML or SVG

class

Description

class = "whitespace separated list of class names"

This attribute indicates membership in one or more sets. Multiple set names must be separated by white space characters. A class name may be shared by several element instances.

Relations

role

Description

role = "whitespace separated list of roles"

The attribute indicates one or more roles of an element. The role describes the role of the element, for example the semantic meaning. A role value may be shared by several element instances.

Unlike the class attribute, role attribute values are intended to be selected from a predefined set of values with specific semantic aspects. The values are either predefined by WAI-ARIA or by the default namespace (starting with ':') or by a (safe) CURIE.

Predefined values in LML are the element names, for example ':poetry'.

Relations

about

Description

about = "URI or safe CURIE"

Indicates about what the content of the related element is with a CURIE, this is the so called 'subject'. This works correspondingly to the meta element target, but provides a relation between the content of the element and the URI referenced by about.

content

Description

content = "string"

If the datatype for an element is specified and the element itself does not contain the data in a machine readable format, the value of this attribute is used instead and has to conform with the data type as specified by the attribute datatype.

datatype

Description

datatype = "CURIE"

Indicates, that the content of the element is in a machine readable format. The data type of this format is defined at the CURIE.

property

Description

property = "whitespace separated list of CURIEs"

Indicates the content of the element, respectively the target of about representing a value of the specified properties, this is the so called 'predicate'.

resource

Description

resource = "URI or safe CURIE"

Indicates the resource as (a not clickable) subject of the statement, a so called object. Note, that other possibilities of subject resources, represented in XHTML as the attributes src and href are here in LML provided by the related attribute doing the referencing in the element link, using XLink this is XLink:href.

typeof

Description

typeof = "whitespace separated list of CURIEs"

Indicates an association of the subject with types as specified by the CURIEs.

rel

Description

rel = "whitespace separated list of relations"

The attribute indicates one or more relations of an element. The rel attribute expresses the relationships between two resources. The relation is either a predefined value (with the XHTML vocabulary) or a CURIE.

rev

Description

rev = "whitespace separated list of reverse relations"

The attribute indicates one or more relations of an element. The rev attribute expresses the reverse relationships between two resources. The relation is either a predefined value (with the XHTML vocabulary) or a CURIE.

prefix (v2)

Description

Type: Attribute

prefix = "whitespace separated list of prefix-name IRI/URI pairs"

Instead of defining prefix mappings with the general XML namespace mechanism, one can use the attribute prefix as well. Using RDFa 1.1 directly, the XML namespace mechanism should be avoided for this RDFa approach, usage of prefix is recommended.

The value is a white space separated list of prefix-name IRI/URI pairs. For each pair first the intended prefix-name is noted, followed by ': ', followed by the defining IRI/URI.

Example:
prefix="exa: http://example.org/prefix/#exa
exb: http://example.com/dummy/#exb
exc: http://example.net/formatc/"

vocab (v2)

Description

Type: Attribute

vocab = "IRI/URI"

This is for mapping IRI/URI to the content or resource, the meta information it pointing to. The IRI/URI references a vocabulary used for the content. Effectively this defines a default vocabulary for items, which typically require a prefixed value.

inlist (v2)

Description

Type: Attribute

inlist = ""

An attribute used to indicate that the object associated with a rel or property attribute on the same element is to be added to the list for that predicate. The value of this attribute must be ignored (leave it empty). Presence of this attribute causes a list to be created if it does not already exist.

Relations