xsl: remove crypto: usage
probably broken by: https://github.com/NixOS/nixpkgs/pull/195748
This commit is contained in:
parent
24d65a0ce3
commit
873765fc14
|
@ -455,6 +455,9 @@ abbr.dtstart, abbr.dtend {
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
transition: all 0.1s ease-in;
|
transition: all 0.1s ease-in;
|
||||||
}
|
}
|
||||||
|
#portal .wiki {
|
||||||
|
background-color: #CFDFEF;
|
||||||
|
}
|
||||||
#portal .wiki h4 {
|
#portal .wiki h4 {
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:date="http://exslt.org/dates-and-times"
|
xmlns:date="http://exslt.org/dates-and-times"
|
||||||
xmlns:crypto="http://exslt.org/crypto">
|
xmlns:str="http://exslt.org/strings">
|
||||||
|
|
||||||
<xsl:output method="text" encoding="utf-8"/>
|
<xsl:output method="text" encoding="utf-8"/>
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="uid">
|
<xsl:template name="uid">
|
||||||
<xsl:text>UID:</xsl:text><xsl:value-of select="crypto:sha1(concat(title,start))"/><xsl:text>@www.c3d2.de</xsl:text>
|
<xsl:text>UID:https://www.c3d2.de/#</xsl:text><xsl:value-of select="str:encode-uri(concat(title,start),false())"/>
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:date="http://exslt.org/dates-and-times"
|
xmlns:date="http://exslt.org/dates-and-times"
|
||||||
xmlns:crypto="http://exslt.org/crypto"
|
xmlns:str="http://exslt.org/strings"
|
||||||
exclude-result-prefixes="xsl crypto date">
|
exclude-result-prefixes="xsl str date">
|
||||||
|
|
||||||
<xsl:output method="xml"
|
<xsl:output method="xml"
|
||||||
version="1.0"
|
version="1.0"
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="uid">
|
<xsl:template name="uid">
|
||||||
<uid><xsl:value-of select="crypto:sha1(concat(title,start))"/>@www.c3d2.de</uid>
|
<uid>https://www.c3d2.de/#<xsl:value-of select="str:encode-uri(concat(title,start),false())"/></uid>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="start">
|
<xsl:template match="start">
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:date="http://exslt.org/dates-and-times"
|
xmlns:date="http://exslt.org/dates-and-times"
|
||||||
xmlns:crypto="http://exslt.org/crypto"
|
xmlns:str="http://exslt.org/strings"
|
||||||
exclude-result-prefixes="xsl date crypto">
|
exclude-result-prefixes="xsl date str">
|
||||||
|
|
||||||
|
|
||||||
<xsl:include href="common.xsl" />
|
<xsl:include href="common.xsl" />
|
||||||
|
@ -391,21 +391,6 @@
|
||||||
background-image: url('<xsl:value-of select="content-image"/>');
|
background-image: url('<xsl:value-of select="content-image"/>');
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="@class = 'wiki'">
|
|
||||||
<xsl:variable name="number"
|
|
||||||
select="translate(
|
|
||||||
crypto:md5(content-text),
|
|
||||||
'abcdefABCDEF', '123456123456')"/>
|
|
||||||
<xsl:attribute name="style">
|
|
||||||
<xsl:text>background-color: rgb(</xsl:text>
|
|
||||||
<xsl:value-of select="255 - number(substring($number, 1, 2))"/>
|
|
||||||
<xsl:text>, </xsl:text>
|
|
||||||
<xsl:value-of select="255 - number(substring($number, 3, 2))"/>
|
|
||||||
<xsl:text>, </xsl:text>
|
|
||||||
<xsl:value-of select="255 - number(substring($number, 5, 2))"/>
|
|
||||||
<xsl:text>);</xsl:text>
|
|
||||||
</xsl:attribute>
|
|
||||||
</xsl:if>
|
|
||||||
|
|
||||||
<xsl:apply-templates select="header"/>
|
<xsl:apply-templates select="header"/>
|
||||||
<xsl:apply-templates select="footer"/>
|
<xsl:apply-templates select="footer"/>
|
||||||
|
|
Loading…
Reference in New Issue