[ODFPlugtest] [odf-discuss] A question about <draw:frame> outside of a <text:p>

Oliver-Rainer Wittmann ORWITT at de.ibm.com
Tue Apr 24 03:34:54 CEST 2012


Hi,

I agree here with Jos.
The first frame containing an image is anchored to-page on page 0.
Typically, such a page does not exist.


Mit freundlichen Grüßen / Best regards
Oliver-Rainer Wittmann

--
Advisory Software Engineer
-------------------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland
Beim Strohhause 17
20097 Hamburg
Phone: +49-40-6389-1415
E-Mail: orwitt at de.ibm.com
-------------------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland Research & Development GmbH / Vorsitzende des
Aufsichtsrats: Martina Koederitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart,
HRB 243294



From:	Jos van den Oever <jos at vandenoever.info>
To:	ODF Plugfest mailinglist <plugtest at opendocsociety.org>
Date:	23.04.2012 14:54
Subject:	Re: [ODFPlugtest] [odf-discuss] A question about <draw:frame>
            outside of a <text:p>
Sent by:	plugtest-bounces at opendocsociety.org



On Monday 23 April 2012 14:24:29 PM Hanssens Bart wrote:
> Perhaps someone on the plugfest mailinglist knows how to handle this
> scenario
>
>
> -----Original Message-----
> From: odf-discuss-bounces at opendocumentfellowship.com
> [mailto:odf-discuss-bounces at opendocumentfellowship.com] On Behalf Of Jean
> Weber Sent: maandag 23 april 2012 14:07
> To: ODF Discussion List
> Subject: Re: [odf-discuss] A question about <draw:frame> outside of a
> <text:p>
>
> You might have better luck asking on a more active mailing list.
>
> On Mon, Apr 23, 2012 at 20:53, Matthew Holloway
<odf-discuss at holloway.co.nz>
wrote:
> > Ok, last ditch attempt, but does no one really have any further ideas
> > about how I should handle this scenario in the opendocument file
format?
> >
> >
> > On Fri, Apr 20, 2012 at 7:45 PM, Matthew Holloway
> >
> > <odf-discuss at holloway.co.nz> wrote:
> >> Maybe, but when I delete the single image by clicking on it
> >> (selecting presumably the top one / highest z-index) and then hitting
> >> 'Delete' on my keyboard then the one underneath isn't shown. It seems
> >> like either they're joined somehow, or that only one is displayed.
Very
> >> perplexing.
> >>
> >> -
> >> Matthew Holloway
> >>
> >>
> >> On Fri, Apr 20, 2012 at 6:24 PM, Mike Carden <mike.carden at gmail.com>
> >>
> >> wrote:
> >>> Z-index = 0 versus Z-index = 1 ?
> >>>
> >>> --
> >>> MC
> >>>
> >>> On Apr 19, 2012 7:04 PM, "Matthew Holloway"
> >>> <odf-discuss at holloway.co.nz>
> >>> wrote:
> >>>
> >>> Hi, I've got query about the OpenDocument format. There's a test
> >>> document at http://docvert.com/test.odt or you can view the source
> >>> at http://docvert.com/test.odt.source/ and I was wondering how to
> >>> understand these two images references...
> >>>
> >>> When I view this document in LibreOffice 3.3.3 there's only one
> >>> image displayed, but the content.xml has two references...
> >>>
> >>>     <draw:frame text:anchor-type="page" text:anchor-page-number="0"
> >>> draw:z-index="0" draw:style-name="gr1" draw:text-style-name="P2"
> >>> svg:width="16.509cm" svg:height="5.605cm" svg:x="0cm" svg:y="0cm">
> >>>         <draw:image
> >>> xlink:href="Pictures/10000000000004300000016C851A96EF.png"
> >>> xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad">
> >>>             <text:p/>
> >>>         </draw:image>
> >>>     </draw:frame>
> >>>     <text:p text:style-name="P1">Test</text:p>
> >>>     <text:p text:style-name="Standard">
> >>>       <draw:frame draw:style-name="fr1" draw:name="Picture 1"
> >>> text:anchor-type="as-char" svg:width="16.51cm" svg:height="5.606cm"
> >>> draw:z-index="1">
> >>>         <draw:image
> >>> xlink:href="Pictures/10000000000004300000016C851A96EF.png"
> >>> xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
> >>>       </draw:frame>
> >>>     </text:p>
> >>>     <text:p text:style-name="Standard"/>
> >>>
> >>> So I'm trying to understand the logic why only one image is shown.
> >>>
> >>> Is it ignoring any <draw:frame> that's doesn't have a surrounding
> >>> <text:p> (or block-level equivalent) or is there a style that I
> >>> don't see that's hiding the first image?

I did a quick validation of the the document and it shows it is invalid
ODF:
 content.xml:2:5072: error: value of attribute "text:anchor-page-number" is

invalid; must be an integer greater than or equal to 1
In case of doubt, run your document through officeshots or download a
validator to do it locally.

So the first frame is set to be on a non-existing page. That might be
causing
the problem.

Cheers,
Jos
_______________________________________________
Plugtest mailing list
Plugtest at opendocsociety.org
https://open.nlnet.nl/mailman/listinfo/plugtest






More information about the Plugtest mailing list