pandoc/data/templates/default.tei
John MacFarlane 0910e92187 TEI improvements.
- Ensure that title element is always present, even if empty.
- Put author tags in the template, rather than adding them in
  the writer.

Closes #4839.
2018-08-16 21:06:49 -07:00

37 lines
738 B
XML

<?xml version="1.0" encoding="utf-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0"$if(lang)$ xml:lang="$lang$"$endif$>
<teiHeader>
<fileDesc>
<titleStmt>
<title>$title$</title>
$for(author)$
<author>$author$</author>
$endfor$
</titleStmt>
<publicationStmt>
<p>$if(publicationStmt)$$publicationStmt$$endif$</p>
$if(license)$
<availability><licence>$license$</licence></availability>
$endif$
</publicationStmt>
<sourceDesc>
$if(sourceDesc)$
$sourceDesc$
$else$
<p>Produced by pandoc.</p>
$endif$
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
$for(include-before)$
$include-before$
$endfor$
<body>
$body$
</body>
$for(include-after)$
$include-after$
$endfor$
</text>
</TEI>