r_kolokacija green implemented.
This commit is contained in:
parent
7572265318
commit
0253d9441b
58
view.xsl
58
view.xsl
|
@ -41,6 +41,7 @@
|
|||
--light-red: #dd8899;
|
||||
--dark-red: #cc3366;
|
||||
--dark-blue: #00008b;
|
||||
--green: #22bb44;
|
||||
}
|
||||
|
||||
.xslt-clanek {
|
||||
|
@ -107,6 +108,10 @@
|
|||
color: var(--dark-red);
|
||||
display: block;
|
||||
}
|
||||
.xslt-r-kolokacija-head {
|
||||
color: var(--green);
|
||||
display: block;
|
||||
}
|
||||
.xslt-oznaka {
|
||||
color: var(--dark-blue);
|
||||
}
|
||||
|
@ -150,6 +155,7 @@
|
|||
<!-- ********************************
|
||||
Pomenska shema/definicija template
|
||||
******************************** -->
|
||||
|
||||
<xsl:template name="definicija_pomenska_shema">
|
||||
<xsl:param name="left_side"/>
|
||||
<xsl:choose>
|
||||
|
@ -160,6 +166,26 @@
|
|||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- ********************************
|
||||
kolokacija / r_kolokacija template
|
||||
******************************** -->
|
||||
|
||||
<xsl:template name="r_nor_kolokacija">
|
||||
<xsl:param name="class-name"/>
|
||||
<div>
|
||||
<span class="{$class-name}">
|
||||
<xsl:apply-templates select="ks | p | i"/>
|
||||
<div class="xslt-morelessbutton-div">
|
||||
<a class="morelessbutton" href="javascript:void(null)"></a>
|
||||
</div>
|
||||
</span>
|
||||
<xsl:text xml:space="preserve"> </xsl:text>
|
||||
<div class="hideable" style="display: none;">
|
||||
<xsl:apply-templates select="zgledi"/>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<!-- ********************************
|
||||
Here are all of xslt rules
|
||||
Please dont polute xslt with it
|
||||
|
@ -245,29 +271,29 @@
|
|||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="kolokacija | r_kolokacija">
|
||||
<xsl:text xml:space="preserve"> </xsl:text>
|
||||
<div>
|
||||
<span class="xslt-kolokacija-head">
|
||||
<xsl:apply-templates select="ks | p | i"/>
|
||||
<div class="xslt-morelessbutton-div">
|
||||
<a class="morelessbutton" href="javascript:void(null)"></a>
|
||||
</div>
|
||||
</span>
|
||||
<xsl:text xml:space="preserve"> </xsl:text>
|
||||
<div class="hideable" style="display: none;">
|
||||
<xsl:apply-templates select="zgledi"/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- r_kolokacija is green,... -->
|
||||
<xsl:template match="r_kolokacija">
|
||||
<xsl:variable name="class-name">xslt-r-kolokacija-head</xsl:variable>
|
||||
<xsl:call-template name="r_nor_kolokacija">
|
||||
<xsl:with-param name="class-name" select="$class-name"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="kolokacije//ks">
|
||||
<!-- ... kolokacija red -->
|
||||
<xsl:template match="kolokacija">
|
||||
<xsl:variable name="class-name">xslt-kolokacija-head</xsl:variable>
|
||||
<xsl:call-template name="r_nor_kolokacija">
|
||||
<xsl:with-param name="class-name" select="$class-name"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="kolokacija/ks | r_kolokacija/ks">
|
||||
<xsl:text xml:space="preserve"> (</xsl:text>
|
||||
<xsl:apply-templates/>
|
||||
<xsl:text xml:space="preserve">) </xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="k[not(position()=last())]">
|
||||
<xsl:template match="kolokacija//k[not(position()=last())] | r_kolokacija//r_k[not(position()=last())]">
|
||||
<xsl:apply-templates/>
|
||||
<xsl:text xml:space="preserve">, </xsl:text>
|
||||
</xsl:template>
|
||||
|
|
Loading…
Reference in New Issue
Block a user