<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: InfoPath Image to WordML</title><link>https://www.infopathdev.com:443/forums/thread/9428.aspx</link><pubDate>Thu, 06 Apr 2006 21:29:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9428</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9428.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9428</wfw:commentRss><description>Okay, I have something going that is working nicely. Here is the gist of it.&lt;br /&gt;&lt;br /&gt;Schema looks like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;my:Fields&lt;br /&gt;   my:Group&lt;br /&gt;      my:field&lt;br /&gt;      my:row&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;my:Group is a repeating group. my:field is a picture file. my:row has a default value of count(../preceding-sibling::my:Group)+1. This means that for a given InfoPath form, each row element is a different number.&lt;br /&gt;&lt;br /&gt;In my WordML XSL file, I have a template that looks like this:&lt;br /&gt; &lt;pre&gt;&amp;lt;xsl:template match="/ns0:myFields/ns0:Group1"&amp;gt;&lt;br /&gt;    &amp;lt;ns0:Group1&amp;gt;&lt;br /&gt;      &amp;lt;xsl:for-each select="@ns0:*|@*[namespace-uri()='']"&amp;gt;&lt;br /&gt;        &amp;lt;xsl:attribute name="{name()}" namespace="{namespace-uri()}"&amp;gt;&lt;br /&gt;          &amp;lt;xsl:value-of select="." /&amp;gt;&lt;br /&gt;        &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;      &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;      &amp;lt;w:tbl&amp;gt;&lt;br /&gt;        &amp;lt;w:tblPr&amp;gt;&lt;br /&gt;          &amp;lt;w:tblStyle w:val="TableGrid" /&amp;gt;&lt;br /&gt;          &amp;lt;w:tblW w:w="0" w:type="auto" /&amp;gt;&lt;br /&gt;          &amp;lt;w:tblLook w:val="01E0" /&amp;gt;&lt;br /&gt;        &amp;lt;/w:tblPr&amp;gt;&lt;br /&gt;        &amp;lt;w:tblGrid&amp;gt;&lt;br /&gt;          &amp;lt;w:gridCol w:w="4428" /&amp;gt;&lt;br /&gt;          &amp;lt;w:gridCol w:w="4428" /&amp;gt;&lt;br /&gt;        &amp;lt;/w:tblGrid&amp;gt;&lt;br /&gt;         &amp;lt;w:tr&amp;gt;&lt;br /&gt;          &amp;lt;w:tc&amp;gt;&lt;br /&gt;            &amp;lt;w:tcPr&amp;gt;&lt;br /&gt;              &amp;lt;w:tcW w:w="4428" w:type="dxa" /&amp;gt;&lt;br /&gt;            &amp;lt;/w:tcPr&amp;gt;&lt;br /&gt;            &amp;lt;w:p&amp;gt;&lt;br /&gt;              &amp;lt;w:r&amp;gt;&lt;br /&gt;                &amp;lt;w:pict&amp;gt;&lt;br /&gt;                  &amp;lt;w:binData&amp;gt;&lt;br /&gt;                    &amp;lt;xsl:attribute name="w:name"&amp;gt;wordml://&amp;lt;xsl:value-of select="./ns0:row"/&amp;gt;&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;                    &amp;lt;xsl:value-of select="./ns0:field2" /&amp;gt;&lt;br /&gt;                  &amp;lt;/w:binData&amp;gt;&lt;br /&gt;                  &amp;lt;v:shape id="_x0000_i1025" type="#_x0000_t75" style="width:100pt;height:50.25pt"&amp;gt;&lt;br /&gt;                    &amp;lt;v:imagedata&amp;gt;&lt;br /&gt;                      &amp;lt;xsl:attribute name="src"&amp;gt;wordml://&amp;lt;xsl:value-of select="./ns0:row"/&amp;gt;&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;                    &amp;lt;/v:imagedata&amp;gt;&lt;br /&gt;                  &amp;lt;/v:shape&amp;gt;&lt;br /&gt;                &amp;lt;/w:pict&amp;gt;&lt;br /&gt;              &amp;lt;/w:r&amp;gt;&lt;br /&gt;            &amp;lt;/w:p&amp;gt;&lt;br /&gt;          &amp;lt;/w:tc&amp;gt;&lt;br /&gt;         &amp;lt;/w:tr&amp;gt;&lt;br /&gt;      &amp;lt;/w:tbl&amp;gt;&lt;br /&gt;    &amp;lt;/ns0:Group1&amp;gt;&lt;br /&gt;  &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Since I generated the XSL using the WML2XSLT.exe by Microsoft, the XSL is a bit busier than it needs to be, but I only modified the center bits, where I need the picture element to repeat. What happens is exactly like what is demo'd in the blog I have linked to in my first post--the row element acts as part of the name attribute for the binData and again as part of the name attribute for the imagedata. Since the row element is always incremented by 1, the name stays unique. All I had to do was &amp;lt;xsl:apply-templates select="/ns0:myFields/ns0:Group1"/&amp;gt; at the point in my WordML XSL that I wanted my table with my pics.&lt;br /&gt;&lt;br /&gt;Hope this saves anyone else struggling with this some time, and kudos and thanks to David Gerhardt for his blog entry, samples and suggestions.</description></item><item><title>Re: InfoPath Image to WordML</title><link>https://www.infopathdev.com:443/forums/thread/9427.aspx</link><pubDate>Fri, 31 Mar 2006 14:47:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9427</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9427.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9427</wfw:commentRss><description>Which is great for a single image. My problem is that the user can insert one or more images and I then need to have those images display in a WordML transform.....so I need to pull over the node with the base64 from the XML....</description></item><item><title>Re: InfoPath Image to WordML</title><link>https://www.infopathdev.com:443/forums/thread/9426.aspx</link><pubDate>Fri, 31 Mar 2006 05:59:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9426</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9426.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9426</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;me I do like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;w:pict&amp;gt;&lt;br /&gt;&amp;lt;w:binData w:name="wordml://02000001.jpg"&amp;gt;&lt;br /&gt;/9j/4AAQSkZJRgABAgEBLAEsAAD/7RGMUGhvdG9zaG9wIDMuMAA4QklN&lt;br /&gt;... picture in base64 code...&lt;br /&gt;A+0KUmVzb2x1dGlvbgAA//Z&lt;br /&gt;&amp;lt;/w:binData&amp;gt;&lt;br /&gt;&amp;lt;v:shape style="width:36pt;height:43.5pt"&amp;gt;&lt;br /&gt;&amp;lt;v:imagedata src="wordml://02000001.jpg"/&amp;gt;&lt;br /&gt;&amp;lt;/v:shape&amp;gt;&lt;br /&gt;&amp;lt;/w:pict&amp;gt; &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>InfoPath Image to WordML</title><link>https://www.infopathdev.com:443/forums/thread/5488.aspx</link><pubDate>Wed, 29 Mar 2006 21:08:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5488</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5488.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5488</wfw:commentRss><description>Hi:&lt;br /&gt;&lt;br /&gt;I have an InfoPath form that can have images attached. The form's main data source is XML--data is stored with the form. I have an XSL that I created using the Microsoft WML2XSLT tool. Everything in the InfoPath form comes through except, of course, the image. I just get a chunk of base64. Does anyone know how to modify an XSL file to decode the base64? I have been trying to do something with the example shown here &lt;a href='http://blogs.3sharp.com/Blog/davidg/archive/2005/11/08/978.aspx' target='_blank' title='http://blogs.3sharp.com/Blog/davidg/archive/2005/11/08/978.aspx'&lt;a target="_blank" href=http://blogs.3sharp.com/Blog/davidg/archive/2005/11/08/978.aspx&gt;http://blogs.3sharp.com/Blog/davidg/archive/2005/11/08/978.aspx&lt;/a&gt;&lt;/a&gt; but I am just not getting it. Any help/suggestions/samples would be greatly appreciated--I'm stuck!!</description></item></channel></rss>