diff --git a/scenarios/xslt/edxml2html/css/styles.css b/scenarios/xslt/edxml2html/css/styles.css index 0370eab1319e6a9afa9e6cf893c0cc2214942165..8f52136c13235a66b1e403447bf64c8851535d01 100644 --- a/scenarios/xslt/edxml2html/css/styles.css +++ b/scenarios/xslt/edxml2html/css/styles.css @@ -326,6 +326,13 @@ hr.metamark-line.doubleLine { } /*::::::::::::::::::::::::::::::::::{ TEI: Transcriptional }::::::::::::::::::::::::::::::::*/ + +.g[data-cert="uncertain"]:after { + content: "?"; + font-size: small; + vertical-align: super; +} + .surface .tei::before, .surface .tei::after { color: brown; diff --git a/scenarios/xslt/edxml2html/libs/html-facsimile.lib.xsl b/scenarios/xslt/edxml2html/libs/html-facsimile.lib.xsl index 39527a4de2864fdf16e49a5dc269e31f88288123..69ef76cddb094c2e224d053cb772d241df55216f 100644 --- a/scenarios/xslt/edxml2html/libs/html-facsimile.lib.xsl +++ b/scenarios/xslt/edxml2html/libs/html-facsimile.lib.xsl @@ -64,13 +64,21 @@ <!-- LINE-PARTS --> - <xsl:template match="g"> + <xsl:template match="g[not(@cert)]"> <span class="g" id="{if(@xml:id) then (@xml:id) else ('part_'||generate-id(.))}"> <xsl:apply-templates/> </span> </xsl:template> + <xsl:template match="g[@cert]"> + <span class="g" + data-cert="{@cert}" + id="{if(@xml:id) then (@xml:id) else ('part_'||generate-id(.))}"> + <xsl:apply-templates/> + </span> + </xsl:template> + <xsl:template match="metamark[contains(@rend, 'Line') or contains(@rend, 'line')]"> <xsl:variable name="rend" select="@rend"/> <hr class="metamark-line {$rend}" data-rend="{$rend}"/>