简体   繁体   English

使用XSLT在不使用外部资源的情况下将图像插入html页面

[英]Insert an image into an html page without using outer resources using XSLT

I've just received an absoultely mad task of writing an xsl file that should provide an html page as an output. 我刚刚收到了写一个xsl文件的疯狂任务,该文件应提供html页面作为输出。

The trick is that the only external resource allowed to be used is a css file. 诀窍是,允许使用的唯一外部资源是css文件。 The page contains a number of images for elements that can't be generated with css. 该页面包含许多无法使用CSS生成的元素的图像。 I know there is a way to embed images into an XSL file as, for example, a Base64 code. 我知道有一种将图像嵌入到XSL文件中的方法,例如,Base64代码。

Is there a way to insert these images into the resulting html? 有没有一种方法可以将这些图像插入到生成的html中? %) %)

Why can't you use CSS embedded image example ? 为什么不能使用CSS嵌入式图像示例 There are many other examples available: https://www.google.ch/search?q=css+embedded+image 还有许多其他示例: https : //www.google.ch/search?q=css+embedded+image

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM