To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=79368
                 Issue #|79368
                 Summary|xmloff expects embedded objects having old invalid mim
                        |etypes in office:mimetype attribute
               Component|xml
                 Version|1.0.0
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mba
             Reported by|fridrich_strba





------- Additional comments from [EMAIL PROTECTED] Sun Jul  8 15:34:28 +0000 
2007 -------
When feeding to OOo an ODF document as flat xml and this flat xml file contains
embedded objects, these objects are not considered unless they have in the
<office:document ...> root element an office:mimetype attribute that matches the
old patter "application/x-vnd.oasis.openoffice.*" or
"application/vnd.oasis.openoffice.*". It is easy to work this around by setting
the mimetype to what xmloff will expect, but such a flat xml file might not be
accepted by other applications implementing ODF.
A quick grep through xmloff shows:
[EMAIL PROTECTED]:~/ooo/SRC680_m218/xmloff> grep "vnd.oasis.openoffice." `find 
./`
./source/core/XMLEmbeddedObjectImportContext.cxx:               OUString aTmp(
RTL_CONSTASCII_USTRINGPARAM("application/vnd.oasis.openoffice.") );
./source/core/XMLEmbeddedObjectImportContext.cxx:                       aTmp =
OUString( RTL_CONSTASCII_USTRINGPARAM("application/x-vnd.oasis.openoffice.") );
./source/core/xmlexp.cxx:                               OUString aTmp(
RTL_CONSTASCII_USTRINGPARAM("application/x-vnd.oasis.openoffice.") );
./source/transform/DocumentTContext.cxx:                        OUString aTmp(
RTL_CONSTASCII_USTRINGPARAM("application/vnd.oasis.openoffice.") );
./source/transform/DocumentTContext.cxx:                                aTmp =
OUString( RTL_CONSTASCII_USTRINGPARAM("application/x-vnd.oasis.openoffice.") );
./source/transform/OOo2Oasis.cxx:                       OUString
sMime(RTL_CONSTASCII_USTRINGPARAM("application/x-vnd.oasis.openoffice.") );

I understand that it might be good to keep these old mimetypes recognized, but
it would be also good and conform to the specifications to have the right
mimetypes that match either of "application/vnd.oasis.opendocument.*" or
"application/x-vnd.oasis.opendocument.*" patterns. In the same token a flat xml
that is received by an application using css.comp.<Component>.XMLOasisExporter
should contain the right mimetype.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to