<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:tei="http://www.tei-c.org/ns/1.0" 
    exclude-result-prefixes="xs"
    version="2.0">
    <!--I added the xmlns:tei declaration to get the tei namespace, and it works now that I've added tei: prefix below -->
    <!--
    <xsl:output method="xml" indent="yes"/>
    -->
    
    
    <xsl:template match="/">
        <html>
            
            <head>
                <link rel="stylesheet" href="../css/place-list.css"/>
            </head>
            <body>
                <h2>Items marked as &lt;name&gt; with subtype "place" for map upload</h2>
                <table xml:id="place-list" border="1">
                    <tr>
                        <td><h3>Type</h3></td>
                        <td><h3>Lat., Long.</h3></td>
                        <td><h3>Address</h3></td>
                        <td><h3>Name</h3></td>
                        <td><h3>Desc.</h3></td>
                    </tr>
       
                       
                    
                    <xsl:for-each select="//tei:place">
                        
                        <xsl:sort select="@type"/>
                        
                            <tr>
                           
                                <td>
                                    <xsl:value-of select="@type"/>
                                </td>
                                <td>
                                    <xsl:value-of select="tei:location/tei:geo"/>
                                </td>
                                <td>
                                    <xsl:value-of select="tei:location/tei:address"/>
                                </td>
                                <td>
                                    <xsl:value-of select="tei:placeName"/>
                                </td>
                                <td>
                                    <xsl:value-of select="tei:desc"/>
                                </td>
                        
                            </tr>
                        </xsl:for-each>
                   
                
                    
                
                        
                     
                </table>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>

 