changeset 61:2da454c30b47

minor bugfix for multi-refs
author Henry S. Thompson <ht@markup.co.uk>
date Fri, 02 Jun 2017 16:11:13 +0100
parents 588cb9ba7c9c
children e46b3efbe845
files html.xsl
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/html.xsl	Fri Jun 02 15:50:43 2017 +0100
+++ b/html.xsl	Fri Jun 02 16:11:13 2017 +0100
@@ -32,7 +32,8 @@
  <xsl:variable name="nColours" select="count($colours)"/>
  <xsl:variable name="colourClassStyles" select="for $i in (1 to $nColours) return concat('.c',$i,' {background-color: ',$colours[$i],'}')"/>
  
- <xsl:variable name="backfi" select="distinct-values(/e:a/e:r/e:c/e:i/@ri)"/>
+ <xsl:variable name="backfi" select="distinct-values(for $ii in /e:a/e:r/e:c/e:i/@ri return string-join(subsequence(tokenize($ii,'_'),1,4),
+                                        '_'))"/>
  <xsl:variable name="borderClassStyles" select="for $fis in $backfi return e:bcs($fis)"></xsl:variable>
 
  <xsl:template match="/">