This module belongs to the Literature Markup Language Version 2.0
There are three new attributes in LML 2.0 indicated in the element index with (v2).
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.
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).
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.
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.
xml:space
= "default" | "preserve"
Standard XML attribute to specify whether white space is preserved in character data.
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.
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.
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'.
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
= "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
= "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
= "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
= "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
= "whitespace separated list of CURIEs"
Indicates an association of the subject with types as specified by the CURIEs.
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
= "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.
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/"
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.
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.