]> Lady’s Gitweb - LesML/blobdiff - parser.xslt
Wrap results in a div
[LesML] / parser.xslt
index e726a9e9953b1f744e346f653c0218b679fcd1e3..227e285f2eaff705a6a0ec9954c5733d5bbb493d 100644 (file)
@@ -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)]">
This page took 0.426327 seconds and 4 git commands to generate.