<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!-- <xsl:import href="http://www.w3.org/2001/tag/doc/xmlspec.xsl"/> -->

<xsl:import href="xmlspec.xsl"/>

<xsl:template match="bibl">
    <dt class="label">
      <xsl:if test="@id">
        <a name="{@id}" id="{@id}"/>
      </xsl:if>
      <xsl:choose>
        <xsl:when test="@key">
          <xsl:value-of select="@key"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="@id"/>
        </xsl:otherwise>
      </xsl:choose>
    </dt>
    <dd>
      <xsl:apply-templates/>
      <xsl:if test="@href">
        (See <a href="{@href}">
        <xsl:value-of select="@href"/>
        </a>)
      </xsl:if>
    </dd>
  </xsl:template>

<xsl:template match="code[@role='code-emph']">
<code style="font-style: italic;"><xsl:value-of select="."/></code>
</xsl:template>

 <xsl:template match="latestloc">
  <dt>Latest version:</dt> 
 <dd>
  <xsl:apply-templates /> 
  </dd>

  </xsl:template>
  
</xsl:stylesheet>

