<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:template match="/">
<html>
<body>
<!--
<table border="2">
<Caption>Inputs: </Caption>
<tr>
<th>l [deg]</th>
<th>b [deg]</th>
<th>r [deg]</th>
</tr>
<xsl:for-each select="results/input">
<tr>
<td><xsl:value-of select="l"/></td>
<td><xsl:value-of select="b"/></td>
<td><xsl:value-of select="r"/></td>
</tr>
</xsl:for-each>
</table>
-->
<table border="1">
<Caption> Search Results </Caption>
<tr>
<!--
<th>Survey</th>
<th>Species</th>
<th>Transition</th>
-->
<th>PublisherDID</th>
<th>P1 lon</th>
<th>P1 lat</th>
<th>P2 lon</th>
<th>P2 lat</th>
<th>P3 lon</th>
<th>P3 lat</th>
<th>P4 lon</th>
<th>P4 lat</th>
<!-- <th>Link</th> -->
</tr>

<xsl:for-each select="results/survey/datacube">
        <tr>
                <!--
<td><xsl:value-of select="Survey"/></td>
<td><xsl:value-of select="Species"/></td>
<td><xsl:value-of select="Transition"/></td>
-->
<td>
    <a href="{Access/URL[@type='cutout']}">
                    <xsl:value-of select="PublisherDID"/>
    </a>
</td>
<td><xsl:value-of select="vertices/SkyCoordSystem/P1/longitude"/></td>
<td><xsl:value-of select="vertices/SkyCoordSystem/P1/latitude"/></td>
<td><xsl:value-of select="vertices/SkyCoordSystem/P2/longitude"/></td>
<td><xsl:value-of select="vertices/SkyCoordSystem/P2/latitude"/></td>
<td><xsl:value-of select="vertices/SkyCoordSystem/P3/longitude"/></td>
<td><xsl:value-of select="vertices/SkyCoordSystem/P3/latitude"/></td>
<td><xsl:value-of select="vertices/SkyCoordSystem/P4/longitude"/></td>
<td><xsl:value-of select="vertices/SkyCoordSystem/P4/latitude"/></td>
<!-- <td><xsl:value-of select="Access/URL[@type='cutout']"/></td> -->
</tr>

</xsl:for-each>
</table>

</body>
</html>
</xsl:template>













</xsl:stylesheet>
