Tei:title

From DM

Revision as of 14:49, 19 February 2012 by DominiqueS (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


tei:title "contains the title of a work, whether article, book, journal, or series, including any alternative titles or subtitles" (http://www.tei-c.org/P4X/ref-TITLE.html).

Contents

Subclasses and attributes

The specific bibliographic level or class of title is indicated by @level. Allowable values are:

a : analytic title (article, poem, or other item published as part of a larger item)
m : monographic title (book, collection, or other item published as a
    distinct item, including single volumes of multi-volume works)
j : journal title
s : series title
u : title of unpublished material (including theses and dissertations unless
    published by a commercial press)

Style

Print

In print sources, titles are displyed differently depending on the bibliographic level involved:

level="a" or level="u"
Analytic and unpublished titles are commonly displayed in roman type with (humanities) or without (natural sciences) quotation marks.
level="m" or level="j"
Monographic and journal titles are commonly displayed in print sources using italic type.
level="s"
Series titles are commonly displayed in roman or italic type.

CSS

If you are attempting to display a TEI XML document directly in a commercial browser, the following CSS fragments can be used to style the element:

Analytic and Unpublished

a. With quotation marks:

title[level="a"], title[level="u"] {
  quotes: '"' '"' "'" "'" '"' '"' "'" "'";
  }

b. Without quotation marks:

title[level="a"], title[level="u"] {

  }

Monographic and Journal

title[level="m"], title[level="j"] {
   font-style: italic;
   }

Series

a. Italic print

title[level="s"] {
   font-style: italic;
   }

b. Roman print:

title[level="s"] {

  }


XSLT

If you are going to convert your TEI XML to XHTML, the following code will produce results that will work in most browsers:

<xsl:template match="title">
  <xsl:if test="@level='a'">
    <q><xsl:apply-templates/></q>
  </xsl:if>
  <xsl:if test="@level='u'">
    <q><xsl:apply-templates/></q>
  </xsl:if>
  <xsl:if test="@level='m'">
    <em><xsl:apply-templates/></em>
  </xsl:if>
  <xsl:if test="@level='j'">
    <em><xsl:apply-templates/></em>
  </xsl:if>
  <xsl:if test="@level='s'">
    <xsl:apply-templates/>
  </xsl:if>
</xsl:template match="titl
Personal tools