<!--
⁌ ⛩📰 书社 ∷ parsers/record-jar.xslt
-© 2024 Lady [@ Lady’s Computer].
+© 2024 Lady [@ Ladys Computer].
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/>.
<template match="html:script[@type='text/record-jar']">
<variable name="lines" select="exslstr:tokenize(., '
')"/>
<html:div>
+ <if test="starts-with($lines[1], '%%') and substring-after($lines[1], '%%')!=''">
+ <comment>
+ <value-of select="substring-after($lines[1], '%%')"/>
+ </comment>
+ </if>
<for-each select="$lines[not(position()=1) and starts-with(., '%%')]">
<variable name="end" select="."/>
<variable name="start" select="preceding-sibling::*[starts-with(., '%%')][1]"/>
</for-each>
</html:dl>
</if>
+ <if test="substring-after(., '%%')!=''">
+ <comment>
+ <value-of select="substring-after(., '%%')"/>
+ </comment>
+ </if>
</for-each>
</html:div>
</template>