Skip to content

Commit

Permalink
Update create-topic-html.xslt
Browse files Browse the repository at this point in the history
  • Loading branch information
JennnRamirez committed Oct 31, 2024
1 parent 82488d7 commit 89b6a3d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,21 @@
</xsl:copy>
</xsl:template>

<xsl:template match="image" mode="body">
<!-- <xsl:template match="image" mode="body">
<figure>
<img src="{@href}">
<xsl:attribute name="width" select="960"/>
</img>
</figure>
</xsl:template>
</xsl:template>-->

<xsl:template match="image[alt]" mode="body">
<figure>
<img src="{@href}">
<xsl:if test="alt">
<xsl:attribute name="alt" select="alt"/>
</xsl:if>
<xsl:attribute name="width" select="960"/>
</img>
<figcaption><xsl:value-of select="alt"/></figcaption>
</figure>
Expand All @@ -97,6 +98,7 @@
<xsl:if test="alt">
<xsl:attribute name="alt" select="alt"/>
</xsl:if>
<xsl:attribute name="width" select="960"/>
</img>
</xsl:template>

Expand Down

0 comments on commit 89b6a3d

Please sign in to comment.