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;
|
--light-red: #dd8899;
|
||||||
--dark-red: #cc3366;
|
--dark-red: #cc3366;
|
||||||
--dark-blue: #00008b;
|
--dark-blue: #00008b;
|
||||||
|
--green: #22bb44;
|
||||||
}
|
}
|
||||||
|
|
||||||
.xslt-clanek {
|
.xslt-clanek {
|
||||||
|
@ -107,6 +108,10 @@
|
||||||
color: var(--dark-red);
|
color: var(--dark-red);
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
.xslt-r-kolokacija-head {
|
||||||
|
color: var(--green);
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
.xslt-oznaka {
|
.xslt-oznaka {
|
||||||
color: var(--dark-blue);
|
color: var(--dark-blue);
|
||||||
}
|
}
|
||||||
|
@ -150,6 +155,7 @@
|
||||||
<!-- ********************************
|
<!-- ********************************
|
||||||
Pomenska shema/definicija template
|
Pomenska shema/definicija template
|
||||||
******************************** -->
|
******************************** -->
|
||||||
|
|
||||||
<xsl:template name="definicija_pomenska_shema">
|
<xsl:template name="definicija_pomenska_shema">
|
||||||
<xsl:param name="left_side"/>
|
<xsl:param name="left_side"/>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
@ -160,6 +166,26 @@
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</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
|
Here are all of xslt rules
|
||||||
Please dont polute xslt with it
|
Please dont polute xslt with it
|
||||||
|
@ -245,29 +271,29 @@
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="kolokacija | r_kolokacija">
|
<!-- r_kolokacija is green,... -->
|
||||||
<xsl:text xml:space="preserve"> </xsl:text>
|
<xsl:template match="r_kolokacija">
|
||||||
<div>
|
<xsl:variable name="class-name">xslt-r-kolokacija-head</xsl:variable>
|
||||||
<span class="xslt-kolokacija-head">
|
<xsl:call-template name="r_nor_kolokacija">
|
||||||
<xsl:apply-templates select="ks | p | i"/>
|
<xsl:with-param name="class-name" select="$class-name"/>
|
||||||
<div class="xslt-morelessbutton-div">
|
</xsl:call-template>
|
||||||
<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>
|
</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:text xml:space="preserve"> (</xsl:text>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
<xsl:text xml:space="preserve">) </xsl:text>
|
<xsl:text xml:space="preserve">) </xsl:text>
|
||||||
</xsl:template>
|
</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:apply-templates/>
|
||||||
<xsl:text xml:space="preserve">, </xsl:text>
|
<xsl:text xml:space="preserve">, </xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user