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 xmlns="http://www.w3.org/1999/XSL/Transform"
16 xmlns:LesML="urn:fdc:ladys.computer:20240512:LesML"
17 xmlns:exsl="http://exslt.org/common"
18 xmlns:exslstr="http://exslt.org/strings"
19 xmlns:html="http://www.w3.org/1999/xhtml"
20 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
21 exclude-result-prefixes="LesML"
22 extension-element-prefixes="exsl exslstr"
25 <书社:id>urn:fdc:ladys.computer:20240512:LesML:parser.xslt</书社:id>
26 <template name="LesML:split">
27 <param name="source"/>
28 <param name="separator" select="'
'"/>
30 <when test="contains($source, $separator)">
32 <value-of select="substring-before($source, $separator)"/>
34 <call-template name="LesML:split">
35 <with-param name="source" select="substring-after($source, $separator)"/>
36 <with-param name="separator" select="$separator"/>
41 <value-of select="$source"/>
46 <template name="LesML:unescape">
47 <param name="source"/>
49 <when test="contains($source, '<U+')">
50 <variable name="after" select="substring-after($source, '<U+')"/>
52 <when test="contains($after, '>')">
53 <variable name="inner" select="substring-before($after, '>')"/>
54 <variable name="components">
55 <call-template name="LesML:split">
56 <with-param name="source" select="$inner"/>
57 <with-param name="separator" select="'.'"/>
60 <variable name="component-nodes" select="exsl:node-set($components)/node()"/>
62 <when test="$component-nodes[string(.)='' or translate(., '0123456789ABCDEF', '')!='']">
63 <value-of select="substring-before($source, '<U+')"/>
65 <value-of select="$inner"/>
67 <call-template name="LesML:unescape">
68 <with-param name="source" select="substring-after($after, '>')"/>
72 <for-each select="$component-nodes">
73 <text disable-output-escaping="yes">&#x</text>
74 <value-of select="."/>
77 <call-template name="LesML:unescape">
78 <with-param name="source" select="substring-after($after, '>')"/>
84 <value-of select="substring-before($source, '<U+')"/>
86 <call-template name="LesML:unescape">
87 <with-param name="source" select="$after"/>
93 <value-of select="$source"/>
97 <template name="LesML:id-and-contents">
98 <param name="source"/>
100 <when test="starts-with($source, '¶')">
102 <when test="contains($source, ' ')">
103 <attribute name="id">
104 <value-of select="substring-before(substring-after($source, '¶'), ' ')"/>
106 <value-of select="substring-after($source, ' ')"/>
109 <attribute name="id">
110 <value-of select="substring-after($source, '¶')"/>
116 <value-of select="$source"/>
120 <template name="LesML:parse">
121 <param name="source"/>
122 <variable name="noshebang">
125 <when test="starts-with($source, '#!')">
126 <value-of select="substring-after($source, '
')"/>
129 <value-of select="$source"/>
133 <variable name="records">
134 <call-template name="LesML:split">
135 <with-param name="source" select="$noshebang"/>
136 <with-param name="separator" select="'
%%'"/>
139 <variable name="record-nodes" select="exsl:node-set($records)/*"/>
141 <if test="count($record-nodes)>1">
142 <html:footer class="head">
143 <for-each select="$record-nodes[not(position()=last() or normalize-space(.)='')]">
144 <variable name="fields" select="exslstr:tokenize(., '
')"/>
146 <for-each select="$fields">
148 <when test="starts-with(., ' ') and $fields[generate-id()=generate-id(current()/preceding-sibling::*[1])]"/>
150 <variable name="next" select="following-sibling::*[not(starts-with(., ' '))]"/>
153 <value-of select="normalize-space(substring-before(., ':'))"/>
156 <variable name="firstline">
158 <when test="contains(., ':')">
159 <value-of select="normalize-space(substring-after(., ':'))"/>
162 <value-of select="normalize-space(.)"/>
167 <when test="substring($firstline, string-length($firstline))='\' and following-sibling::*[position()=1 and starts-with(., ' ')]">
168 <value-of select="substring($firstline, 1, string-length($firstline)-1)"/>
171 <value-of select="$firstline"/>
174 <for-each select="following-sibling::*[starts-with(., ' ') and not(preceding-sibling::*[generate-id()=generate-id($next)])]">
175 <variable name="nextline" select="normalize-space(.)"/>
177 <when test="substring($nextline, string-length($nextline))='\' and following-sibling::*[position()=1 and starts-with(., ' ')]">
178 <value-of select="substring($nextline, 1, string-length($nextline)-1)"/>
181 <value-of select="$nextline"/>
194 <html:div class="body">
195 <call-template name="LesML:paragraphize">
196 <with-param name="source" select="string($record-nodes[last()])"/>
201 <template name="LesML:paragraphize">
202 <param name="source"/>
203 <variable name="paragraphs">
204 <call-template name="LesML:split">
205 <with-param name="source" select="$source"/>
206 <with-param name="separator" select="'

'"/>
209 <variable name="blocked">
210 <for-each select="exsl:node-set($paragraphs)/*">
211 <variable name="lines">
212 <call-template name="LesML:split">
213 <with-param name="source" select="string()"/>
216 <variable name="linespans" select="exsl:node-set($lines)/*"/>
217 <variable name="quoted" select="not($linespans[not(starts-with(., ' ') or starts-with(., '	'))])"/>
218 <variable name="text">
219 <for-each select="$linespans">
220 <if test="normalize-space()!=''">
221 <value-of select="normalize-space()"/>
222 <if test="following-sibling::*[normalize-space()!='']">
228 <if test="string($text)!=''">
229 <variable name="par">
231 <when test="starts-with($text, '⁌ ')">
233 <call-template name="LesML:id-and-contents">
234 <with-param name="source" select="substring-after($text, '⁌ ')"/>
238 <when test="starts-with($text, '§ ')">
240 <call-template name="LesML:id-and-contents">
241 <with-param name="source" select="substring-after($text, '§ ')"/>
245 <when test="starts-with($text, '✠ ')">
247 <call-template name="LesML:id-and-contents">
248 <with-param name="source" select="substring-after($text, '✠ ')"/>
252 <when test="starts-with($text, '❦ ')">
254 <call-template name="LesML:id-and-contents">
255 <with-param name="source" select="substring-after($text, '❦ ')"/>
259 <when test="starts-with($text, '• ')">
260 <html:li class="unordered" data-level="1">
262 <call-template name="LesML:id-and-contents">
263 <with-param name="source" select="substring-after($text, '• ')"/>
268 <when test="starts-with($text, '🔢 ')">
269 <html:li class="ordered" data-level="1">
271 <call-template name="LesML:id-and-contents">
272 <with-param name="source" select="substring-after($text, '🔢 ')"/>
277 <when test="starts-with($text, '◦ ')">
278 <html:li class="unordered" data-level="2">
280 <call-template name="LesML:id-and-contents">
281 <with-param name="source" select="substring-after($text, '◦ ')"/>
286 <when test="starts-with($text, '🔠 ')">
287 <html:li class="ordered" data-level="2">
289 <call-template name="LesML:id-and-contents">
290 <with-param name="source" select="substring-after($text, '🔠 ')"/>
295 <when test="starts-with($text, '‣ ')">
296 <html:li class="unordered" data-level="3">
298 <call-template name="LesML:id-and-contents">
299 <with-param name="source" select="substring-after($text, '‣ ')"/>
304 <when test="starts-with($text, '🔡 ')">
305 <html:li class="ordered" data-level="3">
307 <call-template name="LesML:id-and-contents">
308 <with-param name="source" select="substring-after($text, '🔡 ')"/>
313 <when test="starts-with($text, '⁃ ')">
314 <html:li class="unordered" data-level="4">
316 <call-template name="LesML:id-and-contents">
317 <with-param name="source" select="substring-after($text, '⁃ ')"/>
322 <when test="starts-with($text, '🔣 ')">
323 <html:li class="ordered" data-level="4">
325 <call-template name="LesML:id-and-contents">
326 <with-param name="source" select="substring-after($text, '🔣 ')"/>
331 <when test="starts-with($text, '🛈 ')">
332 <html:div role="note" class="info">
334 <call-template name="LesML:id-and-contents">
335 <with-param name="source" select="substring-after($text, '🛈 ')"/>
340 <when test="starts-with($text, '⯑ ')">
341 <html:div role="note" class="query">
343 <call-template name="LesML:id-and-contents">
344 <with-param name="source" select="substring-after($text, '⯑ ')"/>
349 <when test="starts-with($text, '⚠︎ ')">
350 <html:div role="note" class="warn">
352 <call-template name="LesML:id-and-contents">
353 <with-param name="source" select="substring-after($text, '⚠︎ ')"/>
358 <when test="starts-with($text, '※ ')">
359 <html:div role="note" class="note">
361 <call-template name="LesML:id-and-contents">
362 <with-param name="source" select="substring-after($text, '※ ')"/>
367 <when test="starts-with($text, '☡ ')">
368 <html:div role="note" class="caution">
370 <call-template name="LesML:id-and-contents">
371 <with-param name="source" select="substring-after($text, '☡ ')"/>
376 <when test="starts-with($text, '⋯ ')">
377 <html:div class="continuation">
379 <call-template name="LesML:id-and-contents">
380 <with-param name="source" select="substring-after($text, '⋯ ')"/>
387 <call-template name="LesML:id-and-contents">
388 <with-param name="source" select="$text"/>
395 <when test="translate(string($text), '#*-=_~⁂─━┄┅┈┉╌╍═╴╶╸╺☙❧ ', '')=''">
398 <when test="$quoted">
400 <copy-of select="$par"/>
404 <copy-of select="$par"/>
410 <variable name="inlined">
411 <apply-templates select="exsl:node-set($blocked)/node()" mode="LesML:linkify"/>
413 <apply-templates select="exsl:node-set($inlined)/node()" mode="LesML:finalize-tree"/>
415 <template match="html:script[@type='text/lesml']">
416 <variable name="source">
417 <for-each select=".//text()">
418 <value-of select="."/>
421 <call-template name="LesML:parse">
422 <with-param name="source" select="string($source)"/>
425 <template match="@*|node()" mode="LesML:finalize-tree" priority="-1">
427 <apply-templates select="@*|node()" mode="LesML:finalize-tree"/>
430 <template match="text()" mode="LesML:finalize-tree">
431 <call-template name="LesML:unescape">
432 <with-param name="source" select="string(.)"/>
435 <template match="html:blockquote" mode="LesML:finalize-tree">
436 <if test="not(preceding-sibling::node()) or preceding-sibling::node()[position()=1 and not(self::html:blockquote)]">
437 <variable name="notquote" select="following-sibling::node()[not(self::html:blockquote)][1]"/>
438 <variable name="contents">
439 <copy-of select="node()"/>
440 <for-each select="following-sibling::node()[not($notquote) or following-sibling::node()[generate-id()=generate-id($notquote)]]">
441 <copy-of select="node()"/>
444 <variable name="content-nodes" select="exsl:node-set($contents)/node()"/>
445 <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()]"/>
447 <when test="starts-with($laststarttext, '— ')">
448 <variable name="caption">
449 <copy-of select="$laststarttext/preceding-sibling::node()"/>
450 <value-of select="substring-after($laststarttext, '— ')"/>
451 <copy-of select="$laststarttext/following-sibling::node()"/>
455 <apply-templates select="@*|$content-nodes[position()!=last()]" mode="LesML:finalize-tree"/>
458 <for-each select="$content-nodes[last()]">
460 <apply-templates select="@*|exsl:node-set($caption)/node()" mode="LesML:finalize-tree"/>
468 <apply-templates select="@*|$content-nodes" mode="LesML:finalize-tree"/>
474 <template match="html:div" mode="LesML:finalize-tree">
475 <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)]">
476 <variable name="notcontinuation" select="following-sibling::node()[not(self::html:div and @class='continuation')][1]"/>
478 <apply-templates select="@*|node()" mode="LesML:finalize-tree"/>
479 <for-each select="following-sibling::node()[not($notcontinuation) or following-sibling::node()[generate-id()=generate-id($notcontinuation)]]">
480 <apply-templates select="node()" mode="LesML:finalize-tree"/>
485 <template match="html:li" mode="LesML:finalize-tree">
486 <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)]">
487 <apply-templates select="." mode="LesML:finalize-list"/>
490 <template match="html:li" mode="LesML:finalize-list">
491 <param name="parent-level" select="0"/>
492 <variable name="current-class" select="string(@class)"/>
493 <variable name="current-level" select="number(@data-level)"/>
494 <variable name="wrapper">
496 <when test="@class='ordered'">
504 <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]"/>
505 <element name="html:{$wrapper}" namespace="http://www.w3.org/1999/xhtml">
506 <for-each select=".|following-sibling::html:li[@data-level=$current-level and (not($notinlist) or following-sibling::node()[generate-id()=generate-id($notinlist)])]">
507 <variable name="notcontinuation" select="following-sibling::node()[not(self::html:div and @class='continuation')][1]"/>
509 <apply-templates select="@*|node()" mode="LesML:finalize-tree"/>
510 <for-each select="following-sibling::node()[not($notcontinuation) or following-sibling::node()[generate-id()=generate-id($notcontinuation)]]">
511 <apply-templates select="node()" mode="LesML:finalize-tree"/>
513 <if test="$notcontinuation/self::html:li[@data-level>$current-level]">
514 <apply-templates select="$notcontinuation" mode="LesML:finalize-list">
515 <with-param name="parent-level" select="$current-level"/>
521 <if test="$notinlist/self::html:li[@data-level>$parent-level]">
522 <apply-templates select="$notinlist" mode="LesML:finalize-list">
523 <with-param name="parent-level" select="$parent-level"/>
527 <template match="node()" mode="LesML:inline">
528 <param name="element-name"/>
529 <param name="element-namespace" select="'http://www.w3.org/1999/xhtml'"/>
530 <param name="start-sigil"/>
531 <param name="end-sigil"/>
533 <param name="langtag-supported" select="false()"/>
535 <when test="self::*">
537 <copy-of select="@*"/>
538 <variable name="start-node" select="text()[contains(., $start-sigil)][1]"/>
540 <when test="$start-node">
541 <variable name="remaining">
542 <value-of select="substring-after($start-node, $start-sigil)"/>
543 <copy-of select="$start-node/following-sibling::node()"/>
545 <variable name="end-node" select="exsl:node-set($remaining)/node()[self::text() and contains(., $end-sigil)][1]"/>
547 <when test="$end-node">
548 <variable name="restoftext" select="substring-after($end-node, $end-sigil)"/>
549 <variable name="maybe-langtag">
550 <if test="$langtag-supported and starts-with($restoftext, '@') and contains($restoftext, '$')">
551 <value-of select="substring-before(substring-after($restoftext, '@'), '$')"/>
554 <variable name="langtag">
555 <if test="translate($maybe-langtag, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-', '')=''">
556 <value-of select="$maybe-langtag"/>
559 <variable name="rest">
562 <when test="string($langtag)!=''">
563 <value-of select="substring-after($restoftext, '$')"/>
566 <value-of select="$restoftext"/>
569 <copy-of select="$end-node/following-sibling::node()"/>
572 <variable name="processed-rest">
573 <apply-templates select="exsl:node-set($rest)/*" mode="LesML:inline">
574 <with-param name="element-name" select="$element-name"/>
575 <with-param name="element-namespace" select="$element-namespace"/>
576 <with-param name="start-sigil" select="$start-sigil"/>
577 <with-param name="end-sigil" select="$end-sigil"/>
578 <with-param name="role" select="$role"/>
579 <with-param name="langtag-supported" select="$langtag-supported"/>
582 <copy-of select="$start-node/preceding-sibling::node()"/>
583 <value-of select="substring-before($start-node, $start-sigil)"/>
584 <element name="{$element-name}" namespace="{$element-namespace}">
585 <if test="string($role)!=''">
586 <attribute name="role">
587 <value-of select="$role"/>
590 <if test="string($langtag)!=''">
591 <if test="$element-namespace='http://www.w3.org/1999/xhtml'">
592 <attribute name="lang">
593 <value-of select="$langtag"/>
596 <attribute name="xml:lang">
597 <value-of select="$langtag"/>
600 <copy-of select="$end-node/preceding-sibling::node()"/>
601 <value-of select="substring-before($end-node, $end-sigil)"/>
603 <copy-of select="exsl:node-set($processed-rest)/*/node()"/>
606 <apply-templates select="node()" mode="LesML:inline">
607 <with-param name="element-name" select="$element-name"/>
608 <with-param name="element-namespace" select="$element-namespace"/>
609 <with-param name="start-sigil" select="$start-sigil"/>
610 <with-param name="end-sigil" select="$end-sigil"/>
611 <with-param name="role" select="$role"/>
612 <with-param name="langtag-supported" select="$langtag-supported"/>
618 <apply-templates select="node()" mode="LesML:inline">
619 <with-param name="element-name" select="$element-name"/>
620 <with-param name="element-namespace" select="$element-namespace"/>
621 <with-param name="start-sigil" select="$start-sigil"/>
622 <with-param name="end-sigil" select="$end-sigil"/>
623 <with-param name="role" select="$role"/>
624 <with-param name="langtag-supported" select="$langtag-supported"/>
631 <copy-of select="."/>
635 <template match="node()" mode="LesML:linkify">
636 <variable name="result">
638 <when test="self::*">
640 <copy-of select="@*"/>
641 <variable name="start-node" select="text()[contains(., '{🔗')][1]"/>
643 <when test="$start-node">
644 <variable name="remaining">
645 <value-of select="substring-after($start-node, '{🔗')"/>
646 <copy-of select="$start-node/following-sibling::node()"/>
648 <variable name="end-node" select="exsl:node-set($remaining)/node()[self::text() and contains(., '>}') and not(preceding-sibling::*)][1]"/>
649 <variable name="hyperlink">
650 <for-each select="$end-node/preceding-sibling::node()">
651 <value-of select="."/>
653 <value-of select="substring-before($end-node, '>}')"/>
656 <when test="contains($hyperlink, '<')">
657 <variable name="ltcomponents">
658 <call-template name="LesML:split">
659 <with-param name="source" select="$hyperlink"/>
660 <with-param name="separator" select="'<'"/>
663 <variable name="ltcomponent-nodes" select="exsl:node-set($ltcomponents)/*"/>
664 <variable name="rest">
666 <value-of select="substring-after($end-node, '>}')"/>
667 <copy-of select="$end-node/following-sibling::node()"/>
670 <variable name="processed-rest">
671 <apply-templates select="exsl:node-set($rest)/*" mode="LesML:linkify"/>
673 <copy-of select="$start-node/preceding-sibling::node()"/>
674 <value-of select="substring-before($start-node, '{🔗')"/>
675 <html:a href="{$ltcomponent-nodes[last()]}">
677 <when test="count($ltcomponent-nodes)>2 or normalize-space($ltcomponent-nodes[1])!=''">
678 <value-of select="$ltcomponent-nodes[1]"/>
679 <for-each select="$ltcomponent-nodes[position()>1 and position()!=last()]">
681 <value-of select="."/>
685 <value-of select="$ltcomponent-nodes[last()]"/>
689 <copy-of select="exsl:node-set($processed-rest)/*/node()"/>
692 <variable name="rest">
694 <copy-of select="$remaining"/>
697 <variable name="processed-rest">
698 <apply-templates select="exsl:node-set($rest)/*" mode="LesML:linkify"/>
700 <copy-of select="$start-node/preceding-sibling::node()"/>
701 <value-of select="substring-before($start-node, '{🔗')"/>
703 <copy-of select="exsl:node-set($processed-rest)/*/node()"/>
708 <apply-templates select="node()" mode="LesML:linkify"/>
714 <copy-of select="."/>
718 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:strikethrough"/>
720 <template match="node()" mode="LesML:strikethrough">
721 <variable name="result">
722 <apply-templates select="." mode="LesML:inline">
723 <with-param name="element-name" select="'html:s'"/>
724 <with-param name="start-sigil" select="'⸠'"/>
725 <with-param name="end-sigil" select="'⸡'"/>
728 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:underline"/>
730 <template match="node()" mode="LesML:underline">
731 <variable name="result">
732 <apply-templates select="." mode="LesML:inline">
733 <with-param name="element-name" select="'html:u'"/>
734 <with-param name="start-sigil" select="'⸤'"/>
735 <with-param name="end-sigil" select="'⸥'"/>
738 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:noted"/>
740 <template match="node()" mode="LesML:noted">
741 <variable name="result">
742 <apply-templates select="." mode="LesML:inline">
743 <with-param name="element-name" select="'html:small'"/>
744 <with-param name="start-sigil" select="'⟦'"/>
745 <with-param name="end-sigil" select="'⟧'"/>
746 <with-param name="role" select="'note'"/>
749 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:parenthetical"/>
751 <template match="node()" mode="LesML:parenthetical">
752 <variable name="result">
753 <apply-templates select="." mode="LesML:inline">
754 <with-param name="element-name" select="'html:small'"/>
755 <with-param name="start-sigil" select="'⸨'"/>
756 <with-param name="end-sigil" select="'⸩'"/>
759 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:important"/>
761 <template match="node()" mode="LesML:important">
762 <variable name="result">
763 <apply-templates select="." mode="LesML:inline">
764 <with-param name="element-name" select="'html:strong'"/>
765 <with-param name="start-sigil" select="'☞'"/>
766 <with-param name="end-sigil" select="'☜'"/>
769 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:emphasized"/>
771 <template match="node()" mode="LesML:emphasized">
772 <variable name="result">
773 <apply-templates select="." mode="LesML:inline">
774 <with-param name="element-name" select="'html:em'"/>
775 <with-param name="start-sigil" select="'⹐'"/>
776 <with-param name="end-sigil" select="'⹑'"/>
779 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:titled"/>
781 <template match="node()" mode="LesML:titled">
782 <variable name="result">
783 <apply-templates select="." mode="LesML:inline">
784 <with-param name="element-name" select="'html:cite'"/>
785 <with-param name="start-sigil" select="'⟪'"/>
786 <with-param name="end-sigil" select="'⟫'"/>
789 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:offset"/>
791 <template match="node()" mode="LesML:offset">
792 <variable name="result">
793 <apply-templates select="." mode="LesML:inline">
794 <with-param name="element-name" select="'html:i'"/>
795 <with-param name="start-sigil" select="'⟨'"/>
796 <with-param name="end-sigil" select="'⟩'"/>
797 <with-param name="langtag-supported" select="true()"/>
800 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:bolded"/>
802 <template match="node()" mode="LesML:bolded">
803 <variable name="result">
804 <apply-templates select="." mode="LesML:inline">
805 <with-param name="element-name" select="'html:b'"/>
806 <with-param name="start-sigil" select="'⦃'"/>
807 <with-param name="end-sigil" select="'⦄'"/>
810 <apply-templates select="exsl:node-set($result)/node()" mode="LesML:code"/>
812 <template match="node()" mode="LesML:code">
813 <apply-templates select="." mode="LesML:inline">
814 <with-param name="element-name" select="'html:code'"/>
815 <with-param name="start-sigil" select="'`'"/>
816 <with-param name="end-sigil" select="'´'"/>