Commit 83a49088 authored by Wendell Piez's avatar Wendell Piez

Now supporting images embedded in drawings

parent 6c764eda
......@@ -7,7 +7,8 @@
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns="http://www.w3.org/1999/xhtml" xmlns:xsw="http://coko.foundation/xsweet"
exclude-result-prefixes="#all">
......@@ -750,7 +751,17 @@
</xsl:template>
<!--<v:imagedata r:id="rId6" o:title="Highschool-singing"/>-->
<!-- blip is "binary large image or picture" http://officeopenxml.com/drwPic-ImageData.php -->
<xsl:template match="a:blip">
<img>
<!-- If we can, we will grab the target of an external link -->
<xsl:for-each select="key('rels-by-id',@r:embed,$relations-doc)">
<xsl:attribute name="src" select="@Target"/>
</xsl:for-each>
</img>
</xsl:template>
<xsl:template match="v:imagedata">
<img>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment