OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (OFFICE-3943) Allow attribute draw:mime-type in <draw:image> element


     [ https://issues.oasis-open.org/browse/OFFICE-3943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Stahl updated OFFICE-3943:
----------------------------------
    Proposal: 
In 19.191 draw:mime-type
change
The draw:mime-type attribute specifies the MIME type of the media-type which a plugin processes.
to
The draw:mime-type attribute specifies the MIME type of the media-type which a plugin processes, or the MIME type of the image given by a <draw:image> element.

The change in the reference part from
The draw:mime-type attribute is usable with the following element: <draw:plugin> 10.4.8.
to
The draw:mime-type attribute is usable with the following element: <draw:plugin> 10.4.8. and <draw:image> 10.4.4.
should be done automatically with the proposed schema change.

Schema change:

{noformat}
--- OpenDocument-v1.2-os-schema.rng	2017-12-12 14:00:28.034141600 +0100
+++ OpenDocument-v1.2-os-schema_new.rng	2017-12-12 20:02:49.578097700 +0100
@@ -6770,15 +6770,23 @@
 			<optional>
 				<attribute name="draw:filter-name">
 					<ref name="string"/>
 				</attribute>
 			</optional>
+            <ref name="common-draw-mime-type-attlist"/>
 			<optional>
 				<ref name="xml-id"/>
 			</optional>
 		</interleave>
 	</define>
+    <define name="common-draw-mime-type-attlist">
+        <optional>
+            <attribute name="draw:mime-type">
+                <ref name="string"/>
+            </attribute>
+        </optional>    
+    </define>
 	<define name="draw-object">
 		<element name="draw:object">
 			<ref name="draw-object-attlist"/>
 			<choice>
 				<ref name="common-draw-data-attlist"/>
@@ -6870,15 +6878,11 @@
 			</zeroOrMore>
 		</element>
 	</define>
 	<define name="draw-plugin-attlist">
 		<interleave>
-			<optional>
-				<attribute name="draw:mime-type">
-					<ref name="string"/>
-				</attribute>
-			</optional>
+            <ref name="common-draw-mime-type-attlist"/>
 			<optional>
 				<ref name="xml-id"/>
 			</optional>
 		</interleave>
 	</define>

{noformat}

  was:
In 19.191 draw:mime-type
change
The draw:mime-type attribute specifies the MIME type of the media-type which a plugin processes.
to
The draw:mime-type attribute specifies the MIME type of the media-type which a plugin processes, or the MIME type of the image given by a <draw:image> element.

The change in the reference part from
The draw:mime-type attribute is usable with the following element: <draw:plugin> 10.4.8.
to
The draw:mime-type attribute is usable with the following element: <draw:plugin> 10.4.8. and <draw:image> 10.4.4.
should be done automatically with the proposed schema change.

Schema change:
--- OpenDocument-v1.2-os-schema.rng	2017-12-12 14:00:28.034141600 +0100
+++ OpenDocument-v1.2-os-schema_new.rng	2017-12-12 20:02:49.578097700 +0100
@@ -6770,15 +6770,23 @@
 			<optional>
 				<attribute name="draw:filter-name">
 					<ref name="string"/>
 				</attribute>
 			</optional>
+            <ref name="common-draw-mime-type-attlist"/>
 			<optional>
 				<ref name="xml-id"/>
 			</optional>
 		</interleave>
 	</define>
+    <define name="common-draw-mime-type-attlist">
+        <optional>
+            <attribute name="draw:mime-type">
+                <ref name="string"/>
+            </attribute>
+        </optional>    
+    </define>
 	<define name="draw-object">
 		<element name="draw:object">
 			<ref name="draw-object-attlist"/>
 			<choice>
 				<ref name="common-draw-data-attlist"/>
@@ -6870,15 +6878,11 @@
 			</zeroOrMore>
 		</element>
 	</define>
 	<define name="draw-plugin-attlist">
 		<interleave>
-			<optional>
-				<attribute name="draw:mime-type">
-					<ref name="string"/>
-				</attribute>
-			</optional>
+            <ref name="common-draw-mime-type-attlist"/>
 			<optional>
 				<ref name="xml-id"/>
 			</optional>
 		</interleave>
 	</define>



> Allow attribute draw:mime-type in <draw:image> element
> ------------------------------------------------------
>
>                 Key: OFFICE-3943
>                 URL: https://issues.oasis-open.org/browse/OFFICE-3943
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: Improvement
>          Components: Graphics
>    Affects Versions: ODF 1.2
>            Reporter: Regina Henschel
>            Priority: Major
>             Fix For: ODF 1.3
>
>
> ODF allows to give several representation of the same content, so that a consumer can decide, which fits best to its capabilities. You can give an image as svg-graphic and in addition as png-graphic, for example. But currently there is no easy way to detect the type of the image. Consumers have to read all content and inspect it. Such is not even possible, if you use an XSLT to transform a flat ODF file to e.g. XHTML. Therefore I suggest to add the draw:mime-type attribute to the <draw:image> element.
> The MIME type is a standardized identifier. Therefore it is preferable over the implementation-dependent filter name.
> This attribute would be useful for <draw:object-ole> and <draw:object> as well, but that is not in this issue. However, I have separated the attribute in the schema, so that such addition is easily possible.



--
This message was sent by Atlassian JIRA
(v7.7.2#77003)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]