Copyright Years

Use the years element to mark up the years for which a person or organization holds a copyright.

Notes

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

  • The years element can occur in the credit element.

  • 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 years element can have attributes from external namespaces. See External Namespaces for more information on external-namespace attributes.

Examples

Include copyright information using credit and year:

<credit type="author copyright">
  <name>Shaun McCance</name>
  <email>shaunm@gnome.org</email>
  <years>2010</years>
</credit>

Processing Expectations

See the processing expectations for the credit element.

Comparison to Other Formats

The years element is similar to the year element in DocBook. In DocBook, each year is listed separately, and processing tools are expected to join them appropriately. In Mallard, all years are listed in a single years element, formatted as they should be displayed.

The years element is similar to the copyryear element in DITA. In DITA, each year is listed separately, and processing tools are expected to join them appropriately. In Mallard, all years are listed in a single years element, formatted as they should be displayed. In DITA, the actual year is placed in a year attribute on the copyryear element. In Mallard, the years are in text content.

Schema

The formal definition of the Mallard language is maintained in RELAX NG Compact Syntax in code blocks within this specification. This is the formal definition for the years element. The namespace declarations for this definition are on the page Pages.

mal_info_years = element years {
  mal_info_years_attr,
  mal_info_years_inline
}
mal_info_years_attr = (
  attribute style { xsd:NMTOKENS } ?,
  mal_attr_external *
)
mal_info_years_inline = mal_inline
© 2009 Shaun McCance
cc-by-sa 3.0 (us)

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.

As a special exception, the copyright holders give you permission to copy, modify, and distribute the example code contained in this document under the terms of your choosing, without restriction.

Powered by
Mallard