]> Lady’s Gitweb - Shushe/blobdiff - lib/catalog2parser.xslt
Provide metadata in transform; add attributes there
[Shushe] / lib / catalog2parser.xslt
index f3afd7fa945d8a763e30cbe22f792269910e290c..381fee3f8b993968aec2ff79a79be6258f266c2a 100644 (file)
@@ -122,30 +122,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                </xslt:for-each>
                        </xslt:template>
                        <xslt:template match="/">
-                               <xslt:variable name="parsedroot">
-                                       <xslt:apply-templates select="node()" mode="书社:parse"/>
-                               </xslt:variable>
-                               <xslt:for-each select="exsl:node-set($parsedroot)/node()">
-                                       <xslt:choose>
-                                               <xslt:when test="self::*">
-                                                       <xslt:copy>
-                                                               <xslt:attribute name="书社:cksum">
-                                                                       <xslt:value-of select="document('metadata')//*[@rdf:about=$IDENTIFIER]/nfo:hasHash[@nfo:hashAlgorithm='CRC32']/@nfo:hashValue"/>
-                                                               </xslt:attribute>
-                                                               <xslt:attribute name="书社:identifier">
-                                                                       <xslt:value-of select="$IDENTIFIER"/>
-                                                               </xslt:attribute>
-                                                               <xslt:attribute name="书社:mtime">
-                                                                       <xslt:value-of select="document('metadata')//*[@rdf:about=$IDENTIFIER]/nfo:fileLastModified"/>
-                                                               </xslt:attribute>
-                                                               <xslt:copy-of select="@*[namespace-uri()!='urn:fdc:ladys.computer:20231231:Shu1She4' or not(contains(' cksum identifier mtime ', concat(' ', local-name(), ' ')))]|node()"/>
-                                                       </xslt:copy>
-                                               </xslt:when>
-                                               <xslt:otherwise>
-                                                       <xslt:copy-of select="."/>
-                                               </xslt:otherwise>
-                                       </xslt:choose>
-                               </xslt:for-each>
+                               <xslt:apply-templates select="node()" mode="书社:parse"/>
                        </xslt:template>
                        <xslt:template match="@*|node()" priority="-1">
                                <xslt:copy>
This page took 0.022961 seconds and 4 git commands to generate.