X-Git-Url: https://git.ladys.computer/Shushe/blobdiff_plain/af8b42c720c6aaa54199b556a656d40e8b8951a6..0.3.0:/transforms/asset.xslt

diff --git a/transforms/asset.xslt b/transforms/asset.xslt
index 90c8dbd..0242f43 100644
--- a/transforms/asset.xslt
+++ b/transforms/asset.xslt
@@ -9,22 +9,33 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
 -->
 <transform
 	xmlns="http://www.w3.org/1999/XSL/Transform"
+	xmlns:exsl="http://exslt.org/common"
 	xmlns:html="http://www.w3.org/1999/xhtml"
+	xmlns:xslt="http://www.w3.org/1999/XSL/Transform"
 	xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
-	exclude-result-prefixes="书社"
+	exclude-result-prefixes="exsl"
 	version="1.0"
 >
 	<书社:id>urn:fdc:ladys.computer:20231231:Shu1She4:asset.xslt</书社:id>
-	<template match="html:object[@type='text/css']">
-		<comment>
-			<text>[书社:CSS] </text>
-			<value-of select="@data"/>
-		</comment>
-	</template>
-	<template match="comment()[starts-with(., '[书社:CSS] ')]" mode="书社:metadata">
-		<html:link rel="stylesheet" type="text/css" href="{substring-after(., '[书社:CSS] ')}"/>
-	</template>
+	<template match="html:style|html:object[@type='text/css']"/>
 	<template match="html:object[@type='text/javascript']">
 		<html:script type="{@type}" src="{@data}"/>
 	</template>
+	<template match="html:object[starts-with(@type, 'audio/')]">
+		<html:audio controls="" src="{@data}"/>
+	</template>
+	<template match="html:object[starts-with(@type, 'image/') and not(@type='image/svg+xml')]">
+		<html:img src="{@data}"/>
+	</template>
+	<template match="html:object[starts-with(@type, 'video/')]">
+		<html:video controls="" src="{@data}"/>
+	</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}"/>
+		</for-each>
+		<for-each select="exsl:node-set($书社:expansion)//html:style">
+			<copy-of select="."/>
+		</for-each>
+	</template>
 </transform>