The chapter title may contain markup (subscripts/math) so I'd recommend `<xsl:apply-templates select="$title"/>`. You may also need to remove the `<div class="title">`