Skip to content

Commit

Permalink
hack fixes for #18
Browse files Browse the repository at this point in the history
  • Loading branch information
balmas committed Sep 20, 2016
1 parent 8393bdd commit a522867
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions perseus_nemo_ui/data/assets/css/theme-ext.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ ol > li:nth-child(1) {
}
ol > li:hover {
list-style: decimal;
}

ol.hidenum > li {
list-style: none;
}
24 changes: 22 additions & 2 deletions perseus_nemo_ui/data/assets/static/xslt/edition.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
<xsl:text>edition lang_</xsl:text>
<xsl:value-of select="@xml:lang"/>
</xsl:attribute>
<xsl:apply-templates/>
<xsl:choose>
<xsl:when test="child::t:l">
<ol><xsl:apply-templates /></ol>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>

Expand All @@ -30,7 +37,20 @@
</xsl:choose>
</xsl:element>
</xsl:template>


<xsl:template match="t:quote">
<xsl:element name="blockquote">
<xsl:choose>
<xsl:when test="child::t:l">
<ol class="hidenum"><xsl:apply-templates /></ol>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>

<xsl:template match="t:figure" />

<xsl:template match="t:l">
Expand Down

0 comments on commit a522867

Please sign in to comment.