<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:grws="http://sopac.ucsd.edu/grws" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <!--
      Paul Jamason, SOPAC, 09/2006. used to convert a sopac geophysical resource file collection xml instance to an html
      table. -->
    <xsl:output method="html"/>
    <xsl:template match="grws:geophysicalResourceFileCollection">
        <table>
            <xsl:for-each select="grws:geophysicalResourceFile">
                <xsl:sort select="dc:identifier"/>
                <tr>
                    <td>
                        <a> 
                           <xsl:attribute name="href"><xsl:value-of select="dc:identifier"/></xsl:attribute>
                           <img src="/images/fileIcon.jpg"/> 
                           <xsl:text>&#32;</xsl:text>
                           <xsl:value-of select="substring-after(dc:identifier,'rinex/')"/>
                        </a>
                    </td>
                </tr>
            </xsl:for-each>
        </table>
    </xsl:template>
</xsl:stylesheet>
