XTF: The Image <fileSec> and Image Resolution

kt109nc2cj.mets.xml

<fileGrp ID="siogc29s5_017">
  <file ID="siogc29s5_017-m" ADMID="image-rights" USE="med-res" MIMETYPE="image/gif">
    <FLocat LOCTYPE="URL" xlink:href="/dynaxml/data/cj/kt109nc2cj/figures/siogc29s5_017.gif"/>
  </file>
  <file ID="siogc29s5_017-h" ADMID="image-rights" USE="hi-res" MIMETYPE="image/gif">
    <FLocat LOCTYPE="URL" xlink:href="/dynaxml/data/cj/kt109nc2cj/figures/siogc29s5_017_h.gif"/>
  </file>
</fileGrp>
	      

component.xsl

<xsl:template match="figure">
  <xsl:variable name="id" select="@id"/>
  <xsl:if test="$METS//fileGrp[@ID = $id]/file[@USE='hi-res']">
    <a href="{$METS//fileGrp[@ID = $id]/file[@USE='hi-res']/FLocat/@xlink:href}">Full Size</a>
  </xsl:if>
</xsl:template>