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: Some errors found in the NMCL test suite



Hi all,

My colleagues recently went through the test suite developed by Networking and Mobile Computing Laboratory, and found some errors as below. Is someone in this list working on it?

The test suite we used is 20060921 version.

1. The xmlns:fo namespace declaration is incorrect in many .odp test files, such as classOutline.odp
The fo namespace is incorrect in the test files (.odp). The test files use xmlns:fo="http://www.w3.org/1999/XSL/Format"  instead of xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"

2. The namespace of xmlns:svg declaration should be xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0", instead of xmlns:svg="http://www.w3.org/2000/svg" in many files, such as some files under DrawContent/Frames/, Shapes/, PresentationContent/.

3. In classObject.odp, the manifest.xml is incomplete, which lacks information of OLE file.

4. All files in the testcases/ChartContent/* contains the wrong attribute,  chart:table-number-list
        <chart:plot-area table:cell-range-address="Sheet1.$A$1:.$B$5" chart:table-number-list="0" ...>

5. ChartContent/Legend/: legend.ods, chart:legend-position="right"

In ODF Spec, the value of legend-position could only be,
                <attribute name="chart:legend-position">
                                        <choice>
                                                <value>start</value>
                                                <value>end</value>
                                                <value>top</value>
                                                <value>bottom</value>
                                        </choice>
                </attribute>

or,                 <attribute name="chart:legend-position">
                                <choice>
                                        <value>top-start</value>
                                        <value>bottom-start</value>
                                        <value>top-end</value>
                                        <value>bottom-end</value>
                                </choice>
                        </attribute>

6. DrawingContent/Frames/AlternativeText.odg, the usage of <desc> is apprantly wrong.
<draw:frame draw:style-name="gr1" draw:text-style-name="P1" svg:width="8.255cm" svg:height="6.35cm" svg:x="2.54cm" svg:y="1.448cm">
<draw:image xlink:href=""../1.jpg">
<desc> This is a description working as the alternative text of the image.
 </desc>
</draw:image>
</draw:frame>

7. DrawingContent/Frames/ChainedTextBox/, two <draw:frame> elements under one <text:p> are not allowed.

<text:p text:style-name="Standard">
<draw:frame draw:name="frame1" draw:style-name="gr1" draw:text-style-name="P1" svg:width="8.255cm" svg:height="1cm" svg:x="2.54cm" svg:y="1.448cm">
<draw:text-box draw:chain-next-name="textBox1">
<text:p>This is an example of drawing text box within the frame. This text box can be chained to the next text box if the content of this text box exceeds the capacity.</text:p>
</draw:text-box>
</draw:frame>

<draw:frame draw:name="frame2" draw:style-name="gr1" draw:text-style-name="P1" svg:width="8.255cm" svg:height="6.35cm" svg:x="3cm" svg:y="5cm">
<draw:text-box draw:name="textBox1">
<text:p>This is another text box.</text:p>
</draw:text-box>
</draw:frame>
</text:p>

8. DrawingContent/Frames/ClientSideImageMaps/: page-layout should not be here.
<office:styles>
   <style:page-layout style:name="PageLayout-1" >
       <style:page-layout-properties fo:page-width="8.26in" fo:page-height="11.69in" fo:margin-top="1.0in" fo:margin-bottom="1.0in" fo:margin-left="1.0in" fo:margin-right="1.0in" style:print-orientation="portrait"/>
      </style:page-layout>
 </office:styles>

ODF defines:
        <element name="office:automatic-styles">
                                <interleave>
                                        <ref name="styles"/>
                                        <zeroOrMore>
                                                <ref name="style-page-layout"/>
                                        </zeroOrMore>
                                </interleave>
                        </element>

9. DrawingContent/Frames/Contour: the usage of "contour-polygon" is wrong.
<draw:frame draw:style-name="gr1" draw:text-style-name="P1" svg:width="8.255cm" svg:height="6.35cm" svg:x="2.54cm" svg:y="1.448cm">
<draw:image xlink:href=""../1.jpg">
<draw:contour-polygon svg:width="50px" svg:height="40px" svg:viewBox="0 0 8256 6351" draw:points="0,5715 1905,1270 6350,0 8255,4445 3810,4445 1905,6350" draw:recreate-on-edit="true"/>
</draw:image>
</draw:frame>

10. DrawingContent/Frames/EmbeddedImage: no office:binary-date attribute
<office:binary-data office:binary-data=""iVBORw0KGgoAAAANSUhEUgAAACAAAAATBAMAAAADuhLEAAAABGdBTUEAALGP
C/xhBQAAAAFzUkdCAdnJLH8AAAAPUExURYSEhP///wAAAP//AP8AACykMFsA
AABsSURBVHjahdDBDcMwDENRWhsw9AJRuwCBLuAi+8+UQ+rGTg75NwkPECBg
LlDmAuBUoCyZfapbm4Tr1gJlybVvPt/XKMz6boHyX4iWBmGKdBf5i6cwSVpX
4fGKnoRpqQsdV+1TmLYkBW4Pyks7gc8WIpISYokAAAAASUVORK5CYII="/>

11. General/DocumentStructure/RootAttributes: office:mimetype is not an attribute of office:document-content
<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" office:version="1.0" office:mimetype="application/vnd.oasis.opendocument.text">

12. TextContents/lists/listHeader\: list-header is only allowed once in one list.

<text:list>
<text:list-header> <text:p>This is an example of list header.</text:p></text:list-header>
<text:list-header> <text:p>This is an example of list header.</text:p></text:list-header>
<text:list-header> <text:p>This is an example of list header.</text:p></text:list-header>
</text:list>

ODF spec:        
<define name="text-list">
                <element name="text:list">
                        <ref name="text-list-attr"/>
                        <optional>
                                <ref name="text-list-header"/>
                        </optional>
                        <zeroOrMore>
                                <ref name="text-list-item"/>
                        </zeroOrMore>
                </element>
        </define>



Best Regards,
Helen Yue


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