вт, 25 февр. 2020 г. в 18:26, Felix Schumacher <felix.schumac...@internetallee.de>: > > > Am 25.02.20 um 10:22 schrieb Felix Schumacher: > > Index: xdocs/stylesheets/tomcat-site.xsl > =================================================================== > --- xdocs/stylesheets/tomcat-site.xsl (Revision 1874497) > +++ xdocs/stylesheets/tomcat-site.xsl (Arbeitskopie) > @@ -359,7 +359,7 @@ > <!-- Link to a git hash --> > <xsl:template match="hashlink"> > <xsl:variable name="link"><xsl:value-of > select="$hashlink"/><xsl:value-of select="@hash"/></xsl:variable> > - <a href="{$link}"><xsl:apply-templates/></a> > + <a href="{$link}"><xsl:value-of select="substring(@hash, 0, 9)"/></a> > </xsl:template> > > <!-- Link to a CVE report --> > > would take care of using the substring for the text.
The XPath documentation for substring function [1] says that character positions in that function start with 1 (but any value less than 1 is treated as 1, so 0 works as well). [1] https://www.w3.org/TR/1999/REC-xpath-19991116/#function-substring Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org