K 10 svn:author V 6 wblock K 8 svn:date V 27 2016-04-13T15:22:42.578359Z K 7 svn:log V 463 The stylesheet did not consider long, wrapped lines when generating IDs, and produced broken IDs with linefeeds and multiple dashes. Fix that with numerous applications of normalize-space() before translating spaces into dashes. This stylesheet is XSL 1.0. I don't know if there is a reason for that. If it were XSL 2.0, we could define a single xsl:function to format IDs and factor out all these normalize-space() and translate(, ' ','-') functions into it. END