1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<!--
<xsl:text disable-output-escaping="yes">
<![CDATA[<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">]]>
</xsl:text>
-->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="500" height="500" >
<g>
<xsl:for-each select="//image">
<image width="500" height="500" id="img{position()}" xlink:href="{concat('data:;base64,',.)}"/>
</xsl:for-each>
</g>
</svg>
</xsl:template>
</xsl:stylesheet> |
Partager