Hi Licoln, > -------- > <?xml version="1.0" encoding="UTF-8"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:w="http://schemas.microsoft.com/office/word/2003/wo > rdml" > xmlns:wx="http://schemas.microsoft.com/office/word/2003/a > uxHint" xmlns:v="urn:schemas-microsoft-com:vml" > xmlns:o="urn:schemas-microsoft-com:office:office"> > <xsl:param name="image"/>
> > </xsl:stylesheet> > ------------ > > > XML (snipped) > ------------ > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <?mso-application progid="Word.Document"?> > <w:wordDocument > xmlns:w="http://schemas.microsoft.com/office/word/2003/wo > rdml" xmlns:v="urn:schemas-microsoft-com:vml" > xmlns:w10="urn:schemas-microsoft-com:office:word" > xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003 > /core" > xmlns:aml="http://schemas.microsoft.com/aml/2001/core" > xmlns:wx="http://schemas.microsoft.com/office/word/2003/a > uxHint" xmlns:o="urn:schemas-microsoft-com:office:office" > xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" > w:macrosPresent="no" w:embeddedObjPresent="no" > w:ocxPresent="no" xml:space="preserve"> > ... > <w:body> > <wx:sect> > <w:p> > <w:r> > <w:pict> > ... > <w:binData > w:name="wordml://02000001.jpg"> > <!--base64 data --> > </w:binData> > <v:shape id="_x0000_i1025" > type="#_x0000_t75" style="width:415.5pt;height:311.25pt"> > <v:imagedata > src="wordml://02000001.jpg" o:title="Tulips"/> > </v:shape> > </w:pict> > </w:r> > </w:p> > ... > </wx:sect> > </w:body> > </w:wordDocument> > ------- > > Also, I have never used "xsl:match" before only > "xsl:template match" and can't find it in any xslt books. > Is this an extension function in cocoon? > > > Regards, > > Linc Yes, thats correct this was a stupid typo by me: Use the right: <xsl:template match="/w:wordDocument/w:body/wx:sect/w:p/w:r/w:pict/v: > shape/v:imagedata[@ o:title=$image]"> > <xsl:variable name="height" select="100"/> > <xsl:variable name="width" select="100"/> > <svg:svg xmlns:svg="http://www.w3.org/SVG"> > <svg:g> > <svg:image > xmlns:xlink="http://www.w3.org/1999/xlink" > height="{$height}px" width="{$width}px"> > <xsl:attribute > name="xlink:href"><xsl:text>data:image/png;base64,</xsl:t > ext><xsl:value-of > select="../../w:binData"/></xsl:attribute> > </svg:image> > </svg:g> > </svg:svg> </xsl:template> The "xsl:pattern match" is tosh ;-) and you will only get a error-message from any xslt-processor, sorry. If all work you can try to use the "stx-block", this should make the transformation for the image much faster. Best Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]