]> Lady’s Gitweb - Shushe/blob - transforms/asset.xslt
“Support” X·M·L 1.1
[Shushe] / transforms / asset.xslt
1 <?xml version="1.0"?>
2 <!--
3 ⁌ ⛩️📰 书社 ∷ transforms/asset.xslt
4
5 © 2023–2024 Lady [@ Lady’s Computer]
6
7 This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
8 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/>.
9 -->
10 <transform
11 xmlns="http://www.w3.org/1999/XSL/Transform"
12 xmlns:exsl="http://exslt.org/common"
13 xmlns:html="http://www.w3.org/1999/xhtml"
14 xmlns:xslt="http://www.w3.org/1999/XSL/Transform"
15 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
16 exclude-result-prefixes="exsl"
17 version="1.0"
18 >
19 <书社:id>urn:fdc:ladys.computer:20231231:Shu1She4:asset.xslt</书社:id>
20 <template match="html:style|html:object[@type='text/css']"/>
21 <template match="html:object[@type='text/javascript']">
22 <html:script type="{@type}" src="{@data}">
23 <copy-of select="@书社:identifier"/>
24 </html:script>
25 </template>
26 <template match="html:object[starts-with(@type, 'audio/')]">
27 <html:audio controls="" src="{@data}">
28 <copy-of select="@书社:identifier"/>
29 </html:audio>
30 </template>
31 <template match="html:object[starts-with(@type, 'image/') and not(@type='image/svg+xml')]">
32 <html:img src="{@data}">
33 <copy-of select="@书社:identifier"/>
34 </html:img>
35 </template>
36 <template match="html:object[starts-with(@type, 'video/')]">
37 <html:video controls="" src="{@data}">
38 <copy-of select="@书社:identifier"/>
39 </html:video>
40 </template>
41 <template match="xslt:include[@书社:id='urn:fdc:ladys.computer:20231231:Shu1She4:asset.xslt']" mode="书社:metadata">
42 <for-each select="exsl:node-set($书社:expansion)//html:object[@type='text/css']">
43 <html:link rel="stylesheet" type="text/css" href="{@data}">
44 <copy-of select="@书社:identifier"/>
45 </html:link>
46 </for-each>
47 <for-each select="exsl:node-set($书社:expansion)//html:style">
48 <copy-of select="."/>
49 </for-each>
50 </template>
51 </transform>
This page took 0.15345 seconds and 5 git commands to generate.