<variable name="noshebang" select="$lines[position()>1 or not(starts-with(., '#!lesml') or starts-with(., '##'))]"/>
<variable name="docsep" select="$noshebang[starts-with(., '#!lesml') or starts-with(., '##')][1]"/>
<variable name="doclines" select="$noshebang[not($docsep) or following-sibling::*[generate-id()=generate-id($docsep)]]"/>
+ <if test="starts-with($first-line, '##') and $first-line!='##'">
+ <comment>
+ <value-of select="substring-after($first-line, '##')"/>
+ </comment>
+ </if>
<if test="$shebang!='' or $doclines[normalize-space()!='']">
<variable name="record-separators" select="$doclines[starts-with(., '%%')]"/>
<html:article>
</for-each>
</html:dl>
</if>
+ <if test=".!='%%'">
+ <comment>
+ <value-of select="substring-after(., '%%')"/>
+ </comment>
+ </if>
</for-each>
</html:footer>
</if>
</html:p>
</html:div>
</when>
+ <when test="starts-with($text, '# ')">
+ <comment>
+ <value-of select="substring-after($text, '# ')"/>
+ </comment>
+ </when>
<otherwise>
<html:p>
<call-template name="LesML:id-and-contents">