Altova Mailing List Archives


Re: Embedded pictures in Microsoft InfoPath XML, XSLT and XHTML formats.

From: Peter X <hotmail@--------.--->
To: NULL
Date: 10/29/2003 1:48:00 AM
Julian F. Reschke wrote:

> Sven Steinacker wrote:
> 
>> Hi,
>>
>> XSLT files generated by Microsoft InfoPath applied to some XML content
>> produces quite decent HTML presentations. At least with Mozilla and, of
>> course, IE 6.0 the results look the same as the original form in 
>> InfoPath.
>> However, pictures which were included in an InfoPath form's RTF field
>> before, are encoded in XHTML and embedded in the XML file as follows:
>>
>> <img style="WIDTH: 541px; HEIGHT: 330px" tabIndex="-1" height="330"
>> src="msoinline/a0d1f46db1284886" width="541" v:shapes="_x0000_i1025"
>> xd:inline="XXX..XXX."
>> xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"
>> xmlns:v="urn:v"></img>
>>
>> Whereas "XXX.XXX" represents the character encoded picture. The according
>> InfoPath XSLT, which produces XHTML out of the above nearly leaves the
>> embedded picture code untouched:
>>
>> <img xmlns:v="urn:v" style="WIDTH: 541px; HEIGHT: 330px" tabIndex="-1"
>> height="330" src="msoinline/a0d1f46db1284886" width="541"
>> v:shapes="_x0000_i1025" xd:inline="XXX..XXX."/>
>>
>> This is XHTML syntax but for my knowledge the inline encoding of 
>> pictures is
>> not standard, isn't it? Even the IE 6.0 and Word do show empty pictures
>> only.
>>
>> Does anyone know if embedded pictures will become a (W3C or Microsoft ;-)
>> standard in the future? Do the next version of IE and Word (e.g. WordML)
>> support
>> embedded pictures!?
>>
>> Furthermore, does anyone know the format of the embedded picture encoding
>> InfoPath is using?
>>
>>
>> Thanks a lot for a short note!
> 
> 
> There has been a way to embed pictures for years by using the "data" URI 
> scheme. Why is MS (again) inventing something proprietary?
> 
> Julian
> 

The "data" URI scheme is detailed here:
http://www.ietf.org/rfc/rfc2397.txt

I can't find a live example on the web, but this:

<IMG
    SRC="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAw
    AAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFz
    ByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSp
    a/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJl
    ZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uis
    F81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PH
    hhx4dbgYKAAA7"
    ALT="Larry">


works in Mozilla. Its a picture of "Larry" apparently, but I can't 
remember for the life of me where I found it!

This all works fine in Mozilla, but if memory serves, not in IE or even 
Opera. No excuse though, as the standard is comparitivly old.


Peter.



Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.