From: Lady Date: Mon, 1 Jan 2024 19:00:12 +0000 (-0500) Subject: Improve asset transforms X-Git-Tag: 0.2.0~4 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/05576f88d7808054799537e89c7888e870df66bf?ds=inline Improve asset transforms This commit converts `audio/*`, `image/*` and `video/*` embeds to their appropriate H·T·M·L element, enables inline ``s, and improves the handling of `text/css` embeds. --- diff --git a/README.markdown b/README.markdown index 893ac2c..5b5b84c 100644 --- a/README.markdown +++ b/README.markdown @@ -277,13 +277,10 @@ Transforms are used to convert X·M·L files into their final output, ⛩️📰 书社 comes with some transforms; namely :⁠— - **`transforms/asset.xslt`:** - Converts `` elements into corresponding - `` elements and - `` elements into corresponding - `` elements. - This transform enables embedding of `text/css` and `text/javascript` - files, which ordinarily are considered assets (as they lack - associated parsers). + Converts `` elements which correspond to recognized + media types into the appropriate H·T·M·L elements, and deletes + `` elements from the body of the document and moves + them to the head. - **`transforms/metadata.xslt`:** Provides basic `` metadata. 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 --> <书社:id>urn:fdc:ladys.computer:20231231:Shu1She4:asset.xslt - - +