X-Git-Url: https://git.ladys.computer/LesML/blobdiff_plain/5776803ccc0eba18d1bd4259830f2adc18a7228a..36d58e6ef941e53b6da13b83b0d73f1d95a3dffc:/parser.xslt diff --git a/parser.xslt b/parser.xslt index e726a9e..227e285 100644 --- a/parser.xslt +++ b/parser.xslt @@ -219,7 +219,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one <value-of select="substring-after($first-line, '##')"/> </comment> </if> - <if test="$shebang!='' or $doclines[normalize-space()!='']"> + <if test="$doclines[normalize-space()!='']"> <variable name="record-separators" select="$doclines[starts-with(., '%%')]"/> <element name="article" namespace="&xhtml;"> <for-each select="$params/html:div/html:dt[string()=' LANG ']"> @@ -639,9 +639,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one </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)]">