I've downloaded the latest archive of the
DocBook stylesheets from http://snapshots.docbook.org/ (file
docbook-xsl-snapshot.tar.bz2, 15-May-2014 17:02). Compare the output of
html and xhtml:
$ cd html $ diff -u chunk.xsl profile-chunk.xsl [...] -<xsl:include href="chunk-code.xsl"/> +<xsl:include href="profile-chunk-code.xsl"/>
Now compare it to xhtml:
$ cd ../xhtml $ diff -u chunk.xsl profile-chunk.xsl [... unimportant stuff deleted ...]
The profile-chunk-code.xsl is missing in profile-chunk.xsl.
The use of chunk-code.xsl instead of profile-chunk-code.xsl in profile-chunk.xsl is not correct. I checked in a fix to profiling/xsl2profile.xsl that fixes this problem. The latest snapshot XSL has the fix, and it will be in the next release. This problem was also exhibited in the distributed version 1.78.1, but not 1.77.1.
Such incorrect include is also in profile-onechunk.xsl.