You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Maxim Valyanskiy <ma...@jet.msk.su> on 2011/07/01 10:15:11 UTC
problem with ooxml-lite and tables in PPTX
Hello!
I found strange problem with ooxml-lite jar.
There is classes that process tables in PPTX documents (DrawingTable & co). There
is unit test that coverts it - TestXSLFPowerPointExtractor.testTable().
This test works fine with full ooxml jar, but fails to work with ooxml-lite. I
found that concrete implementation of CTTable is replaced with XmlAnyTypeImpl when
we are working with ooxml-lite. It worth noting that XSLFCommonSlideData uses
XmlCursor and XPath searches to find tables.
Also I tried to remove XmlCursor/Xpatth searches from that code, but it did not
found how to do it - CTGraphicalObjectData it some king of abstract interface. It
has no method to get CTTable child object.
Maybe someone has ideas?
best wishes, Max
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
Re: problem with ooxml-lite and tables in PPTX
Posted by Maxim Valyanskiy <ma...@jet.msk.su>.
Hello!
01.07.2011 14:39, Nick Burch пишет:
> This test works fine with full ooxml jar, but fails to work with ooxml-lite. I
> found that concrete implementation of CTTable is replaced with XmlAnyTypeImpl
> when we are working with ooxml-lite. It worth noting that XSLFCommonSlideData
> uses XmlCursor and XPath searches to find tables.
>
> Sounds like the same issue I hit a while back with XWPF and pictures:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=49934
>
>
> There's a hack in XWPFRun to work around the case there, I think you might need
> to do the same
Thank you Nick. I copied your workaround to XSLFCommonSlideData, commited revision
1141915.
best wishes, Max
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
Re: problem with ooxml-lite and tables in PPTX
Posted by Nick Burch <ni...@alfresco.com>.
On Fri, 1 Jul 2011, Maxim Valyanskiy wrote:
> This test works fine with full ooxml jar, but fails to work with
> ooxml-lite. I found that concrete implementation of CTTable is replaced
> with XmlAnyTypeImpl when we are working with ooxml-lite. It worth noting
> that XSLFCommonSlideData uses XmlCursor and XPath searches to find
> tables.
Sounds like the same issue I hit a while back with XWPF and pictures:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49934
> Also I tried to remove XmlCursor/Xpatth searches from that code, but it
> did not found how to do it - CTGraphicalObjectData it some king of
> abstract interface. It has no method to get CTTable child object.
The issue seems to be triggered when moving from one namespace to another,
eg word to graphics
There's a hack in XWPFRun to work around the case there, I think you might
need to do the same
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org