Refactoring htmlbook:is-chunk handling again to ensure they work with both XSLT 1.0 and 2.0 stylesheets.