1 <?xml version="1.0" encoding="UTF-8"?>
    2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    3    <xsl:output method="html" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.01//EN"
    4       doctype-system="http://www.w3.org/TR/html4/strict.dtd" omit-xml-declaration="yes" />
    5 
    6    <xsl:template match="/">
    7       <html>
    8          <head>
    9             <title>
   10                <xsl:value-of select="TEI.2/teiHeader/fileDesc/titleStmt/title/hi" />
   11             </title>
   12          </head>
   13          <body>
   14             <h1>
   15                <xsl:value-of select="TEI.2/teiHeader/fileDesc/titleStmt/title/hi" />
   16             </h1>
   17             <h2>Names:</h2>
   18             <ul>
   19                <xsl:for-each select="//author">
   20                   <li>
   21                      <xsl:value-of select="child::text()" />
   22                   </li>
   23                </xsl:for-each>
   24                <xsl:for-each select="//editor">
   25                   <li>
   26                      <xsl:value-of select="child::text()" />
   27                   </li>
   28                </xsl:for-each>
   29                <xsl:for-each select="//respStmt">
   30                   <li>
   31                      <xsl:value-of select="name" />
   32                   </li>
   33                </xsl:for-each>
   34                <xsl:for-each select="//name[@type='person']">
   35                   <li>
   36                      <xsl:value-of select="attribute::reg" />
   37                   </li>
   38                </xsl:for-each>
   39             </ul>
   40             <h2>Places:</h2>
   41             <ul>
   42                <xsl:for-each select="//pubPlace">
   43                   <li>
   44                      <xsl:value-of select="." />
   45                   </li>
   46                </xsl:for-each>
   47                <xsl:for-each select="//name[@type='place']">
   48                   <li>
   49                      <xsl:value-of select="attribute::reg" />
   50                   </li>
   51                </xsl:for-each>
   52             </ul>
   53          </body>
   54       </html>
   55    </xsl:template>
   56 
   57 </xsl:stylesheet>
   58