<xsl:template match="ilustr">
<img>
<xsl:attribute name="src">
- <xsl:value-of select="$gallery" /><xsl:value-of select="@src" />
+ <xsl:value-of select="@src" />
+ </xsl:attribute>
+ <xsl:attribute name="srcset">
+ <xsl:value-of select="@srcset" />
+ </xsl:attribute>
+ <xsl:attribute name="sizes">
+ (min-width: 718px) 600px,
+ (min-width: 600px) calc(100vw - 118px),
+ (min-width: 320px) calc(100vw - 75px),
+ (min-width: 15em) calc(100wv - 60px),
+ calc(100wv - 40px)
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="@alt" />
<a href="{concat('#footnote-', generate-id(.))}" class="annotation">[<xsl:number value="count(preceding::*[self::pa or self::pe or self::pr or self::pt]) + 1" />]</a>
</xsl:template>
+<xsl:template match="ref" mode="inline">
+ <a class="reference" data-uri="">
+ <xsl:attribute name="data-uri">
+ <xsl:value-of select="@href"/>
+ </xsl:attribute>
+ </a>
+</xsl:template>
+
<!-- Other inline tags -->
<xsl:template match="mat" mode="inline">
<math xmlns="http://www.w3.org/1998/Math/MathML"><xsl:copy-of select="*" /></math>