]> Lady’s Gitweb - LesML/blobdiff - parser.xslt
Increase the number of section‐break characters
[LesML] / parser.xslt
index 89ff594da284952d5a62f3c0f413b2d03d9a660f..f2279d877cbdc5ac58e7491c80e2fa409bbd9fe8 100644 (file)
@@ -11,6 +11,9 @@ SPDX-License-Identifier: MPL-2.0
 This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
 If a copy of the M·P·L was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
 -->
+<!DOCTYPE transform [
+       <!ENTITY section-break '#*-.=_~·․‥…⁂⋯─━┄┅┈┉╌╍═╴╶╸╺☙❧ ・*-.=_~'>
+]>
 <transform
        xmlns="http://www.w3.org/1999/XSL/Transform"
        xmlns:LesML="urn:fdc:ladys.computer:20240512:LesML"
@@ -242,17 +245,17 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                                        </call-template>
                                                                </html:h2>
                                                        </when>
-                                                       <when test="starts-with($text, ' ')">
+                                                       <when test="starts-with($text, ' ')">
                                                                <html:h3>
                                                                        <call-template name="LesML:id-and-contents">
-                                                                               <with-param name="source" select="substring-after($text, ' ')"/>
+                                                                               <with-param name="source" select="substring-after($text, ' ')"/>
                                                                        </call-template>
                                                                </html:h3>
                                                        </when>
-                                                       <when test="starts-with($text, ' ')">
+                                                       <when test="starts-with($text, ' ')">
                                                                <html:h4>
                                                                        <call-template name="LesML:id-and-contents">
-                                                                               <with-param name="source" select="substring-after($text, ' ')"/>
+                                                                               <with-param name="source" select="substring-after($text, ' ')"/>
                                                                        </call-template>
                                                                </html:h4>
                                                        </when>
@@ -292,11 +295,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                                        </html:p>
                                                                </html:li>
                                                        </when>
-                                                       <when test="starts-with($text, ' ')">
+                                                       <when test="starts-with($text, ' ')">
                                                                <html:li class="unordered" data-level="3">
                                                                        <html:p>
                                                                                <call-template name="LesML:id-and-contents">
-                                                                                       <with-param name="source" select="substring-after($text, ' ')"/>
+                                                                                       <with-param name="source" select="substring-after($text, ' ')"/>
                                                                                </call-template>
                                                                        </html:p>
                                                                </html:li>
@@ -392,7 +395,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                </choose>
                                        </variable>
                                        <choose>
-                                               <when test="translate(string($text), '#*-=_~⁂─━┄┅┈┉╌╍═╴╶╸╺☙❧ ', '')=''">
+                                               <when test="translate(string($text), '&section-break; ', '')=''">
                                                        <html:hr/>
                                                </when>
                                                <when test="$quoted">
This page took 0.027197 seconds and 4 git commands to generate.