3 SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: MPL-2.0
7 ⁌ 💄📝 Les·M·L ∷ parser.xslt
9 © 2024 Lady [@ Lady’s Computer]
11 This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
12 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/>.
15 <!ENTITY section-break '#*-.=_~·․‥…⁂⋯─━┄┅┈┉╌╍═╴╶╸╺☙❧ ・*-.=_~'>
18 xmlns="http://www.w3.org/1999/XSL/Transform"
19 xmlns:LesML="urn:fdc:ladys.computer:20240512:LesML"
20 xmlns:exsl="http://exslt.org/common"
21 xmlns:exslstr="http://exslt.org/strings"
22 xmlns:html="http://www.w3.org/1999/xhtml"
23 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
24 exclude-result-prefixes="LesML"
25 extension-element-prefixes="exsl exslstr"
28 <书社:id>urn:fdc:ladys.computer:20240512:LesML:parser.xslt</书社:id>
29 <template name="LesML:split">
30 <param name="source"/>
31 <param name="separator" select="'
'"/>
33 <when test="contains($source, $separator)">
35 <value-of select="substring-before($source, $separator)"/>
37 <call-template name="LesML:split">
38 <with-param name="source" select="substring-after($source, $separator)"/>
39 <with-param name="separator" select="$separator"/>
44 <value-of select="$source"/>
49 <template name="LesML:unescape">
50 <param name="source"/>
52 <when test="contains($source, '<U+')">
53 <variable name="after" select="substring-after($source, '<U+')"/>
55 <when test="contains($after, '>')">
56 <variable name="inner" select="substring-before($after, '>')"/>
57 <variable name="components">
58 <call-template name="LesML:split">
59 <with-param name="source" select="$inner"/>
60 <with-param name="separator" select="'.'"/>
63 <variable name="component-nodes" select="exsl:node-set($components)/node()"/>
65 <when test="$component-nodes[string(.)='' or translate(., '0123456789ABCDEF', '')!='']">
66 <value-of select="substring-before($source, '<U+')"/>
68 <value-of select="$inner"/>
70 <call-template name="LesML:unescape">
71 <with-param name="source" select="substring-after($after, '>')"/>
75 <for-each select="$component-nodes">
76 <text disable-output-escaping="yes">&#x</text>
77 <value-of select="."/>
80 <call-template name="LesML:unescape">
81 <with-param name="source" select="substring-after($after, '>')"/>
87 <value-of select="substring-before($source, '<U+')"/>
89 <call-template name="LesML:unescape">
90 <with-param name="source" select="$after"/>
96 <value-of select="$source"/>
100 <template name="LesML:id-and-contents">
101 <param name="source"/>
103 <when test="starts-with($source, '¶')">
105 <when test="contains($source, ' ')">
106 <attribute name="id">
107 <value-of select="substring-before(substring-after($source, '¶'), ' ')"/>
109 <value-of select="substring-after($source, ' ')"/>
112 <attribute name="id">
113 <value-of select="substring-after($source, '¶')"/>
119 <value-of select="$source"/>
123 <template name="LesML:parse">
124 <param name="source"/>
125 <variable name="noshebang">
128 <when test="starts-with($source, '#!')">
129 <value-of select="substring-after($source, '
')"/>
132 <value-of select="$source"/>
136 <variable name="records">
137 <call-template name="LesML:split">
138 <with-param name="source" select="$noshebang"/>
139 <with-param name="separator" select="'
%%'"/>
142 <variable name="record-nodes" select="exsl:node-set($records)/*"/>
144 <if test="count($record-nodes)>1">
145 <html:footer class="head">
146 <for-each select="$record-nodes[not(position()=last() or normalize-space(.)='')]">
147 <variable name="fields" select="exslstr:tokenize(., '
')"/>
149 <for-each select="$fields">
151 <when test="starts-with(., ' ') and $fields[generate-id()=generate-id(current()/preceding-sibling::*[1])]"/>
153 <variable name="next" select="following-sibling::*[not(starts-with(., ' '))]"/>
156 <value-of select="normalize-space(substring-before(., ':'))"/>
159 <variable name="firstline">
161 <when test="contains(., ':')">
162 <value-of select="normalize-space(substring-after(., ':'))"/>
165 <value-of select="normalize-space(.)"/>
170 <when test="substring($firstline, string-length($firstline))='\' and following-sibling::*[position()=1 and starts-with(., ' ')]">
171 <value-of select="substring($firstline, 1, string-length($firstline)-1)"/>
174 <value-of select="$firstline"/>
177 <for-each select="following-sibling::*[starts-with(., ' ') and not(preceding-sibling::*[generate-id()=generate-id($next)])]">
178 <variable name="nextline" select="normalize-space(.)"/>
180 <when test="substring($nextline, string-length($nextline))='\' and following-sibling::*[position()=1 and starts-with(., ' ')]">
181 <value-of select="substring($nextline, 1, string-length($nextline)-1)"/>
184 <value-of select="$nextline"/>
197 <html:div class="body">
198 <call-template name="LesML:paragraphize">
199 <with-param name="source" select="string($record-nodes[last()])"/>
204 <template name="LesML:paragraphize">
205 <param name="source"/>
206 <variable name="paragraphs">
207 <call-template name="LesML:split">
208 <with-param name="source" select="$source"/>
209 <with-param name="separator" select="'

'"/>
212 <variable name="blocked">
213 <for-each select="exsl:node-set($paragraphs)/*">
214 <variable name="lines">
215 <call-template name="LesML:split">
216 <with-param name="source" select="string()"/>
219 <variable name="linespans" select="exsl:node-set($lines)/*"/>
220 <variable name="quoted" select="not($linespans[not(starts-with(., ' ') or starts-with(., '	'))])"/>
221 <variable name="text">
222 <for-each select="$linespans">
223 <if test="normalize-space()!=''">
224 <value-of select="normalize-space()"/>
225 <if test="following-sibling::*[normalize-space()!='']">
231 <if test="string($text)!=''">
232 <variable name="par">
234 <when test="starts-with($text, '⁌ ')">
236 <call-template name="LesML:id-and-contents">
237 <with-param name="source" select="substring-after($text, '⁌ ')"/>
241 <when test="starts-with($text, '§ ')">
243 <call-template name="LesML:id-and-contents">
244 <with-param name="source" select="substring-after($text, '§ ')"/>
248 <when test="starts-with($text, '❦ ')">
250 <call-template name="LesML:id-and-contents">
251 <with-param name="source" select="substring-after($text, '❦ ')"/>
255 <when test="starts-with($text, '✠ ')">
257 <call-template name="LesML:id-and-contents">
258 <with-param name="source" select="substring-after($text, '✠ ')"/>
262 <when test="starts-with($text, '• ')">
263 <html:li class="unordered" data-level="1">
265 <call-template name="LesML:id-and-contents">
266 <with-param name="source" select="substring-after($text, '• ')"/>
271 <when test="starts-with($text, '🔢 ')">
272 <html:li class="ordered" data-level="1">
274 <call-template name="LesML:id-and-contents">
275 <with-param name="source" select="substring-after($text, '🔢 ')"/>
280 <when test="starts-with($text, '◦ ')">
281 <html:li class="unordered" data-level="2">
283 <call-template name="LesML:id-and-contents">
284 <with-param name="source" select="substring-after($text, '◦ ')"/>
289 <when test="starts-with($text, '🔠 ')">
290 <html:li class="ordered" data-level="2">
292 <call-template name="LesML:id-and-contents">
293 <with-param name="source" select="substring-after($text, '🔠 ')"/>
298 <when test="starts-with($text, '▪ ')">
299 <html:li class="unordered" data-level="3">
301 <call-template name="LesML:id-and-contents">
302 <with-param name="source" select="substring-after($text, '▪ ')"/>
307 <when test="starts-with($text, '🔡 ')">
308 <html:li class="ordered" data-level="3">
310 <call-template name="LesML:id-and-contents">
311 <with-param name="source" select="substring-after($text, '🔡 ')"/>
316 <when test="starts-with($text, '⁃ ')">
317 <html:li class="unordered" data-level="4">
319 <call-template name="LesML:id-and-contents">
320 <with-param name="source" select="substring-after($text, '⁃ ')"/>
325 <when test="starts-with($text, '🔣 ')">
326 <html:li class="ordered" data-level="4">
328 <call-template name="LesML:id-and-contents">
329 <with-param name="source" select="substring-after($text, '🔣 ')"/>
334 <when test="starts-with($text, '🛈 ')">
335 <html:div role="note" class="info">
337 <call-template name="LesML:id-and-contents">
338 <with-param name="source" select="substring-after($text, '🛈 ')"/>
343 <when test="starts-with($text, '⯑ ')">
344 <html:div role="note" class="query">
346 <call-template name="LesML:id-and-contents">
347 <with-param name="source" select="substring-after($text, '⯑ ')"/>
352 <when test="starts-with($text, '⚠︎ ')">
353 <html:div role="note" class="warn">
355 <call-template name="LesML:id-and-contents">
356 <with-param name="source" select="substring-after($text, '⚠︎ ')"/>
361 <when test="starts-with($text, '※ ')">
362 <html:div role="note" class="note">
364 <call-template name="LesML:id-and-contents">
365 <with-param name="source" select="substring-after($text, '※ ')"/>
370 <when test="starts-with($text, '☡ ')">
371 <html:div role="note" class="caution">
373 <call-template name="LesML:id-and-contents">
374 <with-param name="source" select="substring-after($text, '☡ ')"/>
379 <when test="starts-with($text, '⋯ ')">
380 <html:div class="continuation">
382 <call-template name="LesML:id-and-contents">
383 <with-param name="source" select="substring-after($text, '⋯ ')"/>
390 <call-template name="LesML:id-and-contents">
391 <with-param name="source" select="$text"/>
398 <when test="translate(string($text), '§ion-break; ', '')=''">
401 <when test="$quoted">
403 <copy-of select="$par"/>
407 <copy-of select="$par"/>
413 <variable name="inlined">
414 <apply-templates select="exsl:node-set($blocked)/node()" mode="LesML:linkify"/>
416 <apply-templates select="exsl:node-set($inlined)/node()" mode="LesML:finalize-tree"/>
418 <template match="html:script[@type='text/lesml']">
419 <variable name="source">
420 <for-each select=".//text()">
421 <value-of select="."/>
424 <call-template name="LesML:parse">
425 <with-param name="source" select="string($source)"/>
428 <template match="@*|node()" mode="LesML:finalize-tree" priority="-1">
430 <apply-templates select="@*|node()" mode="LesML:finalize-tree"/>
433 <template match="text()" mode="LesML:finalize-tree">
434 <call-template name="LesML:unescape">
435 <with-param name="source" select="string(.)"/>
438 <template match="html:blockquote" mode="LesML:finalize-tree">
439 <if test="not(preceding-sibling::node()) or preceding-sibling::node()[position()=1 and not(self::html:blockquote)]">
440 <variable name="notquote" select="following-sibling::node()[not(self::html:blockquote)][1]"/>
441 <variable name="contents">
442 <copy-of select="node()"/>
443 <for-each select="following-sibling::node()[not($notquote) or following-sibling::node()[generate-id()=generate-id($notquote)]]">
444 <copy-of select="node()"/>
447 <variable name="content-nodes" select="exsl:node-set($contents)/node()"/>
448 <variable name="laststarttext" select="$content-nodes[last()]/self::html:p[not(@class) and not(@role)]/node()[self::text() or self::*][position()=1 and self::text()]"/>
450 <when test="starts-with($laststarttext, '— ')">
451 <variable name="caption">
452 <copy-of select="$laststarttext/preceding-sibling::node()"/>
453 <value-of select="substring-after($laststarttext, '— ')"/>
454 <copy-of select="$laststarttext/following-sibling::node()"/>
458 <apply-templates select="@*|$content-nodes[position()!=last()]" mode="LesML:finalize-tree"/>
461 <for-each select="$content-nodes[last()]">
463 <apply-templates select="@*|exsl:node-set($caption)/node()" mode="LesML:finalize-tree"/>
471 <apply-templates select="@*|$content-nodes" mode="LesML:finalize-tree"/>
477 <template match="html:div" mode="LesML:finalize-tree">
478 <if test="not(@class='continuation') or not(preceding-sibling::node()) or preceding-sibling::node()[position()=1 and not(self::html:div or self::html:li)]">
479 <variable name="notcontinuation" select="following-sibling::node()[not(self::html:div and @class='continuation')][1]"/>
481 <apply-templates select="@*|node()" mode="LesML:finalize-tree"/>
482 <for-each select="following-sibling::node()[not($notcontinuation) or following-sibling::node()[generate-id()=generate-id($notcontinuation)]]">
483 <apply-templates select="node()" mode="LesML:finalize-tree"/>
488 <template match="html:li" mode="LesML:finalize-tree">
489 <if test="not(preceding-sibling::node()) or preceding-sibling::node()[not(preceding-sibling::* and self::html:div and @class='continuation')][position()=1 and not(self::html:li)]">
490 <apply-templates select="." mode="LesML:finalize-list"/>
493 <template match="html:li" mode="LesML:finalize-list">
494 <param name="parent-level" select="0"/>
495 <variable name="current-class" select="string(@class)"/>
496 <variable name="current-level" select="number(@data-level)"/>
497 <variable name="wrapper">
499 <when test="@class='ordered'">
507 <variable name="notinlist" select="following-sibling::node()[not(self::html:div and @class='continuation' or self::html:li and (@data-level>$current-level or @data-level=$current-level and @class=$current-class))][1]"/>
508 <element name="html:{$wrapper}" namespace="http://www.w3.org/1999/xhtml">
509 <for-each select=".|following-sibling::html:li[@data-level=$current-level and (not($notinlist) or following-sibling::node()[generate-id()=generate-id($notinlist)])]">
510 <variable name="notcontinuation" select="following-sibling::node()[not(self::html:div and @class='continuation')][1]"/>
512 <apply-templates select="@*|node()" mode="LesML:finalize-tree"/>
513 <for-each select="following-sibling::node()[not($notcontinuation) or following-sibling::node()[generate-id()=generate-id($notcontinuation)]]">
514 <apply-templates select="node()" mode="LesML:finalize-tree"/>
516 <if test="$notcontinuation/self::html:li[@data-level>$current-level]">
517 <apply-templates select="$notcontinuation" mode="LesML:finalize-list">
518 <with-param name="parent-level" select="$current-level"/>
524 <if test="$notinlist/self::html:li[@data-level>$parent-level]">
525 <apply-templates select="$notinlist" mode="LesML:finalize-list">
526 <with-param name="parent-level" select="$parent-level"/>
530 <template match="node()" mode="LesML:inline">
531 <param name="element-name"/>
532 <param name="element-namespace" select="'http://www.w3.org/1999/xhtml'"/>
533 <param name="start-sigil"/>
534 <param name="end-sigil"/>
536 <param name="langtag-supported" select="false()"/>
538 <when test="self::*">
540 <copy-of select="@*"/>
541 <variable name="start-node" select="text()[contains(., $start-sigil)][1]"/>
543 <when test="$start-node">
544 <variable name="remaining">
545 <value-of select="substring-after($start-node, $start-sigil)"/>
546 <copy-of select="$start-node/following-sibling::node()"/>
548 <variable name="end-node" select="exsl:node-set($remaining)/node()[self::text() and contains(., $end-sigil)][1]"/>
550 <when test="$end-node">
551 <variable name="restoftext" select="substring-after($end-node, $end-sigil)"/>
552 <variable name="maybe-langtag">
553 <if test="$langtag-supported and starts-with($restoftext, '@') and contains($restoftext, '$')">
554 <value-of select="substring-before(substring-after($restoftext, '@'), '$')"/>
557 <variable name="langtag">
558 <if test="translate($maybe-langtag, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-', '')=''">
559 <value-of select="$maybe-langtag"/>
562 <variable name="rest">
565 <when test="string($langtag)!=''">
566 <value-of select="substring-after($restoftext, '$')"/>
569 <value-of select="$restoftext"/>
572 <copy-of select="$end-node/following-sibling::node()"/>
575 <variable name="processed-rest">
576 <apply-templates select="exsl:node-set($rest)/*" mode="LesML:inline">
577 <with-param name="element-name" select="$element-name"/>
578 <with-param name="element-namespace" select="$element-namespace"/>
579 <with-param name="start-sigil" select="$start-sigil"/>
580 <with-param name="end-sigil" select="$end-sigil"/>
581 <with-param name="role" select="$role"/>
582 <with-param name="langtag-supported" select="$langtag-supported"/>
585 <copy-of select="$start-node/preceding-sibling::node()"/>
586 <value-of select="substring-before($start-node, $start-sigil)"/>
587 <element name="{$element-name}" namespace="{$element-namespace}">
588 <if test="string($role)!=''">
589 <attribute name="role">
590 <value-of select="$role"/>
593 <if test="string($langtag)!=''">
594 <if test="$element-namespace='http://www.w3.org/1999/xhtml'">
595 <attribute name="lang">
596 <value-of select="$langtag"/>
599 <attribute name="xml:lang">
600 <value-of select="$langtag"/>
603 <copy-of select="$end-node/preceding-sibling::node()"/>
604 <value-of select="substring-before($end-node, $end-sigil)"/>
606 <copy-of select="exsl:node-set($processed-rest)/*/node()"/>
609 <apply-templates select="node()" mode="LesML:inline">
610 <with-param name="element-name" select="$element-name"/>
611 <with-param name="element-namespace" select="$element-namespace"/>
612 <with-param name="start-sigil" select="$start-sigil"/>
613 <with-param name="end-sigil" select="$end-sigil"/>
614 <with-param name="role" select="$role"/>
615 <with-param name="langtag-supported" select="$langtag-supported"/>
621 <apply-templates select="node()" mode="LesML:inline">
622 <with-param name="element-name" select="$element-name"/>
623 <with-param name="element-namespace" select="$element-namespace"/>
624 <with-param name="start-sigil" select="$start-sigil"/>
625 <with-param name="end-sigil" select="$end-sigil"/>
626 <with-param name="role" select="$role"/>
627 <with-param name="langtag-supported" select="$langtag-supported"/>
634 <copy-of select="."/>
638 <template match="node()" mode="LesML:linkify">
639 <variable name="result">
641 <when test="self::*">
643 <copy-of select="@*"/>
644 <variable name="start-node" select="text()[contains(., '{🔗')][1]"/>
646 <when test="$start-node">
647 <variable name="remaining">
648 <value-of select="substring-after($start-node, '{🔗')"/>
649 <copy-of select="$start-node/following-sibling::node()"/>
651 <variable name="end-node" select="exsl:node-set($remaining)/node()[self::text() and contains(., '>}') and not(preceding-sibling::*)][1]"/>
652 <variable name="hyperlink">
653 <for-each select="$end-node/preceding-sibling::node()">
654 <value-of select="."/>
656 <value-of select="substring-before($end-node, '>}')"/>
659 <when test="contains($hyperlink, '<')">
660 <variable name="ltcomponents">
661 <call-template name="LesML:split">
662 <with-param name="source" select="$hyperlink"/>
663 <with-param name="separator" select="'<'"/>
666 <variable name="ltcomponent-nodes" select="exsl:node-set($ltcomponents)/*"/>
667 <variable name="rest">
669 <value-of select="substring-after($end-node, '>}')"/>
670 <copy-of select="$end-node/following-sibling::node()"/>
673 <variable name="processed-rest">
674 <apply-templates select="exsl:node-set($rest)/*" mode="LesML:linkify"/>
676 <copy-of select="$start-node/preceding-sibling::node()"/>
677 <value-of select="substring-before($start-node, '{🔗')"/>
678 <html:a href="{$ltcomponent-nodes[last()]}">
680 <when test="count($ltcomponent-nodes)>2 or normalize-space($ltcomponent-nodes[1])!=''">
681 <value-of select="$ltcomponent-nodes[1]"/>
682 <for-each select="$ltcomponent-nodes[position()>1 and position()!=last()]">
684 <value-of select="."/>
688 <value-of select="$ltcomponent-nodes[last()]"/>
692 <copy-of select="exsl:node-set($processed-rest)/*/node()"/>
695 <variable name="rest">
697 <copy-of select="$remaining"/>
700 <variable name="processed-rest">
701 <apply-templates select="exsl:node-set($rest)/*" mode="LesML:linkify"/>
703 <copy-of select="$start-node/preceding-sibling::node()"/>
704 <value-of select="substring-before($start-node, '{🔗')"/>
706 <copy-of select="exsl:node-set($processed-rest)/*/node()"/>
711 <apply-templates select="node()" mode="LesML:linkify"/>
717 <copy-of select="."/>
721 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:strikethrough"/>
723 <template match="node()" mode="LesML:strikethrough">
724 <variable name="result">
725 <apply-templates select="." mode="LesML:inline">
726 <with-param name="element-name" select="'html:s'"/>
727 <with-param name="start-sigil" select="'⸠'"/>
728 <with-param name="end-sigil" select="'⸡'"/>
731 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:underline"/>
733 <template match="node()" mode="LesML:underline">
734 <variable name="result">
735 <apply-templates select="." mode="LesML:inline">
736 <with-param name="element-name" select="'html:u'"/>
737 <with-param name="start-sigil" select="'⸤'"/>
738 <with-param name="end-sigil" select="'⸥'"/>
741 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:noted"/>
743 <template match="node()" mode="LesML:noted">
744 <variable name="result">
745 <apply-templates select="." mode="LesML:inline">
746 <with-param name="element-name" select="'html:small'"/>
747 <with-param name="start-sigil" select="'⟦'"/>
748 <with-param name="end-sigil" select="'⟧'"/>
749 <with-param name="role" select="'note'"/>
752 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:parenthetical"/>
754 <template match="node()" mode="LesML:parenthetical">
755 <variable name="result">
756 <apply-templates select="." mode="LesML:inline">
757 <with-param name="element-name" select="'html:small'"/>
758 <with-param name="start-sigil" select="'⸨'"/>
759 <with-param name="end-sigil" select="'⸩'"/>
762 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:important"/>
764 <template match="node()" mode="LesML:important">
765 <variable name="result">
766 <apply-templates select="." mode="LesML:inline">
767 <with-param name="element-name" select="'html:strong'"/>
768 <with-param name="start-sigil" select="'☞'"/>
769 <with-param name="end-sigil" select="'☜'"/>
772 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:emphasized"/>
774 <template match="node()" mode="LesML:emphasized">
775 <variable name="result">
776 <apply-templates select="." mode="LesML:inline">
777 <with-param name="element-name" select="'html:em'"/>
778 <with-param name="start-sigil" select="'⹐'"/>
779 <with-param name="end-sigil" select="'⹑'"/>
782 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:titled"/>
784 <template match="node()" mode="LesML:titled">
785 <variable name="result">
786 <apply-templates select="." mode="LesML:inline">
787 <with-param name="element-name" select="'html:cite'"/>
788 <with-param name="start-sigil" select="'⟪'"/>
789 <with-param name="end-sigil" select="'⟫'"/>
792 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:offset"/>
794 <template match="node()" mode="LesML:offset">
795 <variable name="result">
796 <apply-templates select="." mode="LesML:inline">
797 <with-param name="element-name" select="'html:i'"/>
798 <with-param name="start-sigil" select="'⟨'"/>
799 <with-param name="end-sigil" select="'⟩'"/>
800 <with-param name="langtag-supported" select="true()"/>
803 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:bolded"/>
805 <template match="node()" mode="LesML:bolded">
806 <variable name="result">
807 <apply-templates select="." mode="LesML:inline">
808 <with-param name="element-name" select="'html:b'"/>
809 <with-param name="start-sigil" select="'⦃'"/>
810 <with-param name="end-sigil" select="'⦄'"/>
813 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:code"/>
815 <template match="node()" mode="LesML:code">
816 <apply-templates select="." mode="LesML:inline">
817 <with-param name="element-name" select="'html:code'"/>
818 <with-param name="start-sigil" select="'`'"/>
819 <with-param name="end-sigil" select="'´'"/>