Even in the case where there is only one document, there may be
additional document comments which should be grouped alongside it and
not intermixed with any comments in the surrounding area.
For the case when there is only one document and nothing else, not
even a comment, it is probably better to still wrap the output for
consistency.
</with-param>
</call-template>
</variable>
- <call-template name="LesML:parse">
- <with-param name="lines" select="exsl:node-set($lines-fragment)/*"/>
- </call-template>
+ <element name="div" namespace="&xhtml;">
+ <call-template name="LesML:parse">
+ <with-param name="lines" select="exsl:node-set($lines-fragment)/*"/>
+ </call-template>
+ </element>
</template>
<template match="html:blockquote" mode="LesML:finalize-tree">
<if test="not(preceding-sibling::node()) or preceding-sibling::node()[position()=1 and not(self::html:blockquote)]">