Loading xsl/jats/jats2html.xsl +46 −0 Original line number Diff line number Diff line Loading @@ -1246,6 +1246,52 @@ </details> </xsl:template> <xsl:template match="fig-group"> <figure role="group"> <xsl:attribute name="aria-labelledby"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1 )"/> </xsl:attribute> <xsl:if test="caption/p[@content-type='caption' or @content-type='credits']"> <xsl:attribute name="aria-describedby"> <xsl:if test="caption/p[@content-type='caption']"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1,'-legende' )"/> </xsl:if> <xsl:if test="caption/p[@content-type='caption'] and caption/p[@content-type='credits']"> <xsl:text> </xsl:text> </xsl:if> <xsl:if test="caption/p[@content-type='credits']"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1,'-credits' )"/> </xsl:if> </xsl:attribute> </xsl:if> <header> <h1> <xsl:attribute name="id"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1 )"/> </xsl:attribute> <xsl:apply-templates select="caption/title/node()"/> </h1> </header> <xsl:apply-templates select="fig"/> <xsl:if test="caption/p[@content-type='caption']"> <p> <xsl:attribute name="id"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1,'-legende' )"/> </xsl:attribute> <xsl:apply-templates select="caption/p[@content-type='caption']/node()"/> </p> </xsl:if> <xsl:if test="caption/p[@content-type='credits']"> <p> <xsl:attribute name="id"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1,'-credits' )"/> </xsl:attribute> <xsl:apply-templates select="caption/p[@content-type='credits']/node()"/> </p> </xsl:if> </figure> </xsl:template> <xsl:template match="app[starts-with(@id,'long-desc')]//title[normalize-space() = '']"/> <xsl:template match="app[starts-with(@id,'long-desc')]/sec[1]/p[1][preceding-sibling::*[1][self::title[not(node())]]]"> Loading Loading
xsl/jats/jats2html.xsl +46 −0 Original line number Diff line number Diff line Loading @@ -1246,6 +1246,52 @@ </details> </xsl:template> <xsl:template match="fig-group"> <figure role="group"> <xsl:attribute name="aria-labelledby"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1 )"/> </xsl:attribute> <xsl:if test="caption/p[@content-type='caption' or @content-type='credits']"> <xsl:attribute name="aria-describedby"> <xsl:if test="caption/p[@content-type='caption']"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1,'-legende' )"/> </xsl:if> <xsl:if test="caption/p[@content-type='caption'] and caption/p[@content-type='credits']"> <xsl:text> </xsl:text> </xsl:if> <xsl:if test="caption/p[@content-type='credits']"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1,'-credits' )"/> </xsl:if> </xsl:attribute> </xsl:if> <header> <h1> <xsl:attribute name="id"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1 )"/> </xsl:attribute> <xsl:apply-templates select="caption/title/node()"/> </h1> </header> <xsl:apply-templates select="fig"/> <xsl:if test="caption/p[@content-type='caption']"> <p> <xsl:attribute name="id"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1,'-legende' )"/> </xsl:attribute> <xsl:apply-templates select="caption/p[@content-type='caption']/node()"/> </p> </xsl:if> <xsl:if test="caption/p[@content-type='credits']"> <p> <xsl:attribute name="id"> <xsl:value-of select="concat('planche-',count(preceding::fig-group) +1,'-credits' )"/> </xsl:attribute> <xsl:apply-templates select="caption/p[@content-type='credits']/node()"/> </p> </xsl:if> </figure> </xsl:template> <xsl:template match="app[starts-with(@id,'long-desc')]//title[normalize-space() = '']"/> <xsl:template match="app[starts-with(@id,'long-desc')]/sec[1]/p[1][preceding-sibling::*[1][self::title[not(node())]]]"> Loading