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

Jos van den Oever jos at vandenoever.info
Mon Apr 23 14:53:26 CEST 2012


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



More information about the Plugtest mailing list