]> Lady’s Gitweb - Caudex/blobdiff - transforms/entry.xslt
Update ⛩📰 书社; use 💄📝 Les·M·L as markup format
[Caudex] / transforms / entry.xslt
index 96cd637acbad2c27fe2584afe52aaeda7173ab17..82bbf21bb92e57928df1dbf5f38b641642c4da99 100644 (file)
@@ -9,6 +9,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
 -->
 <!DOCTYPE transform [
        <!ENTITY Caudex "urn:fdc:ladys.computer:20240204:Caudex:">
 -->
 <!DOCTYPE transform [
        <!ENTITY Caudex "urn:fdc:ladys.computer:20240204:Caudex:">
+       <!ENTITY LesML "urn:fdc:ladys.computer:20240512:LesML:">
        <!ENTITY 书社 "urn:fdc:ladys.computer:20231231:Shu1She4:">
 ]>
 <transform
        <!ENTITY 书社 "urn:fdc:ladys.computer:20231231:Shu1She4:">
 ]>
 <transform
@@ -20,15 +21,14 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
        exclude-result-prefixes="exsl Caudex"
        version="1.0"
 >
        exclude-result-prefixes="exsl Caudex"
        version="1.0"
 >
-       <import href="../lib/split.xslt"/>
        <书社:id>&Caudex;entry.xslt</书社:id>
        <template match="/html:div[@书社:parsed-by='&Caudex;catalog.xslt'][@class='entry']">
                <html:body>
                        <for-each select="@*[namespace-uri()!='urn:fdc:ladys.computer:20231231:Shu1She4']">
                                <copy/>
                        </for-each>
        <书社:id>&Caudex;entry.xslt</书社:id>
        <template match="/html:div[@书社:parsed-by='&Caudex;catalog.xslt'][@class='entry']">
                <html:body>
                        <for-each select="@*[namespace-uri()!='urn:fdc:ladys.computer:20231231:Shu1She4']">
                                <copy/>
                        </for-each>
-                       <for-each select="html:div[@id='@']/html:div[@书社:parsed-by='&Caudex;codex-entry.xslt']">
-                               <variable name="metadata" select="html:div[@书社:parsed-by='&书社;record-jar.xslt']/html:dl[1]"/>
+                       <for-each select="html:div[@id='@']/html:article[@书社:parsed-by='&LesML;parser.xslt']">
+                               <variable name="metadata" select="html:footer[@class='head']/html:dl[1]"/>
                                <html:meta itemprop="&书社;title">
                                        <attribute name="content">
                                                <value-of select="$metadata//html:dt[string()='TITLE']/following-sibling::html:dd"/>
                                <html:meta itemprop="&书社;title">
                                        <attribute name="content">
                                                <value-of select="$metadata//html:dt[string()='TITLE']/following-sibling::html:dd"/>
@@ -48,42 +48,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                        <value-of select="$metadata//html:dt[string()='TITLE']/following-sibling::html:dd"/>
                                                </html:h1>
                                        </if>
                                                        <value-of select="$metadata//html:dt[string()='TITLE']/following-sibling::html:dd"/>
                                                </html:h1>
                                        </if>
-                                       <variable name="paragraphs">
-                                               <call-template name="Caudex:split">
-                                                       <with-param name="source" select="string(html:pre[@书社:parsed-by='&书社;plain.xslt'])"/>
-                                                       <with-param name="separator" select="'&#xA;&#xA;'"/>
-                                               </call-template>
-                                       </variable>
-                                       <for-each select="exsl:node-set($paragraphs)/*">
-                                               <variable name="lines">
-                                                       <call-template name="Caudex:split">
-                                                               <with-param name="source" select="string()"/>
-                                                       </call-template>
-                                               </variable>
-                                               <variable name="linespans" select="exsl:node-set($lines)/*"/>
-                                               <variable name="partype">
-                                                       <choose>
-                                                               <when test="not($linespans[not(starts-with(., ' ') or starts-with(., '&#x9;'))])">
-                                                                       <text>blockquote</text>
-                                                               </when>
-                                                               <otherwise>
-                                                                       <text>p</text>
-                                                               </otherwise>
-                                                       </choose>
-                                               </variable>
-                                               <if test="$linespans[normalize-space()!='']">
-                                                       <element name="html:{$partype}">
-                                                               <for-each select="$linespans">
-                                                                       <if test="normalize-space()!=''">
-                                                                               <value-of select="normalize-space()"/>
-                                                                               <if test="following-sibling::*[normalize-space()!='']">
-                                                                                       <text> </text>
-                                                                               </if>
-                                                                       </if>
-                                                               </for-each>
-                                                       </element>
-                                               </if>
-                                       </for-each>
+                                       <apply-templates select="node()[not(self::html:footer[@class='head'])]"/>
                                </html:article>
                        </for-each>
                </html:body>
                                </html:article>
                        </for-each>
                </html:body>
This page took 0.045848 seconds and 4 git commands to generate.