Shaun McCance shaunm@gnome.org 2007-2009 A generic inline element that can be used for semantic, localization, and styling purpose. Spans mal_inline_span = element span { mal_attr_link ?, attribute style { xsd:NMTOKENS } ?, attribute * - (mal:* | local:*) { text } *, mal_inline }

Use the span element to surround a run of text without using any of the semantic inline elements. This is frequently necessary for extensions using attributes from external namespaces.

Notes

The span element can contain a mixture of text and any general inline elements.

The span element can occur in any general inline context, including inside most inline elements, some basic block elements, and certain informational elements.

The span element can link to other pages or documents. See for more information.

The style attribute takes a space-separated list of style hints. Processing tools should adjust their behavior according to those style hints they understand.

The span element can have attributes from external namespaces. See for more information on external-namespace attributes.

Examples

Use span with an external-namespace attribute to mark a word as untranslatable using the Internationalization Tag Set:

word should not be translated.]]>

This word should not be translated.

Processing Expectations

No particular special rendering is required for span elements. Processing tools may have special processing rules for certain style hints or external-namespace attributes.

Comparison to Other Formats

The span element is similar to the phrase element in DocBook.