]> Lady’s Gitweb - Shushe/blobdiff - transforms/asset.xslt
Refactor transforms & add 书社:application stage
[Shushe] / transforms / asset.xslt
index 0242f435a688f567af665e6761f792a0e36c6db9..55b449b64ea5fbe05ca12d9b53bfc0b2c4184d2b 100644 (file)
@@ -19,20 +19,30 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
        <书社:id>urn:fdc:ladys.computer:20231231:Shu1She4:asset.xslt</书社:id>
        <template match="html:style|html:object[@type='text/css']"/>
        <template match="html:object[@type='text/javascript']">
-               <html:script type="{@type}" src="{@data}"/>
+               <html:script type="{@type}" src="{@data}">
+                       <copy-of select="@书社:identifier"/>
+               </html:script>
        </template>
        <template match="html:object[starts-with(@type, 'audio/')]">
-               <html:audio controls="" src="{@data}"/>
+               <html:audio controls="" src="{@data}">
+                       <copy-of select="@书社:identifier"/>
+               </html:audio>
        </template>
        <template match="html:object[starts-with(@type, 'image/') and not(@type='image/svg+xml')]">
-               <html:img src="{@data}"/>
+               <html:img src="{@data}">
+                       <copy-of select="@书社:identifier"/>
+               </html:img>
        </template>
        <template match="html:object[starts-with(@type, 'video/')]">
-               <html:video controls="" src="{@data}"/>
+               <html:video controls="" src="{@data}">
+                       <copy-of select="@书社:identifier"/>
+               </html:video>
        </template>
        <template match="xslt:include[@书社:id='urn:fdc:ladys.computer:20231231:Shu1She4:asset.xslt']" mode="书社:metadata">
                <for-each select="exsl:node-set($书社:expansion)//html:object[@type='text/css']">
-                       <html:link rel="stylesheet" type="text/css" href="{@data}"/>
+                       <html:link rel="stylesheet" type="text/css" href="{@data}">
+                               <copy-of select="@书社:identifier"/>
+                       </html:link>
                </for-each>
                <for-each select="exsl:node-set($书社:expansion)//html:style">
                        <copy-of select="."/>
This page took 0.051434 seconds and 4 git commands to generate.