Brackets and commas for colocations

This commit is contained in:
Ozbolt Menegatti 2018-10-29 17:58:54 +01:00
parent 752500dda9
commit 1d7805d9c6

View File

@ -45,7 +45,7 @@
<div style="float: left; margin-left: 0.5em; color: #999999; font-weight: bold;"> <div style="float: left; margin-left: 0.5em; color: #999999; font-weight: bold;">
<xsl:choose> <xsl:choose>
<xsl:when test="count(../pomen)&gt;1"> <xsl:when test="count(../pomen)&gt;1">
<xsl:value-of select="position()"/> <xsl:value-of select="position()"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
@ -110,10 +110,16 @@
</span> </span>
<xsl:text xml:space="preserve"> </xsl:text> <xsl:text xml:space="preserve"> </xsl:text>
</xsl:template> </xsl:template>
<xsl:template match="kolokacija//* | r_kolokacija//*"> <xsl:template match="kolokacije//ks">
<xsl:text xml:space="preserve"> </xsl:text> <xsl:text xml:space="preserve">(</xsl:text>
<xsl:apply-templates/> <xsl:apply-templates/>
<xsl:text xml:space="preserve">) </xsl:text>
</xsl:template>
<xsl:template match="k[not(position()=last())]">
<xsl:apply-templates/>
<xsl:text xml:space="preserve">, </xsl:text>
</xsl:template> </xsl:template>
<xsl:template match="enota | stalna_zveza//zveza"> <xsl:template match="enota | stalna_zveza//zveza">