conditional call for crypto function
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
7259266fd1
commit
c30565d4a0
|
@ -380,14 +380,15 @@
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="/page/portal/item">
|
<xsl:template match="/page/portal/item">
|
||||||
<!-- 1 (not really) random character 1-9 and blank -->
|
<!-- 1 (not really) random character 1-9 and blank
|
||||||
<!--
|
crypto:sha1 depends on crypto being built with xsltproc
|
||||||
deactivated until nix package has crypto support
|
-->
|
||||||
-->
|
<xsl:variable name="diceroll"><!--
|
||||||
<xsl:variable name="diceroll">4</xsl:variable>
|
--><xsl:choose><!--
|
||||||
<!--
|
--><xsl:when test="not(function-available('crypto:sha1'))">4</xsl:when><!--
|
||||||
<xsl:variable name="diceroll" select="translate(substring(crypto:sha1(.),1,1),'0abcdef','')"/>
|
--><xsl:otherwise><xsl:text select="translate(substring(crypto:sha1(.),1,1),'0abcdef','')"/></xsl:otherwise><!--
|
||||||
-->
|
--></xsl:choose><!--
|
||||||
|
--></xsl:variable>
|
||||||
<article>
|
<article>
|
||||||
<xsl:if test="@class">
|
<xsl:if test="@class">
|
||||||
<xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
|
<xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
|
||||||
|
|
Loading…
Reference in New Issue