Joerg Heinicke escribió:
On 09.05.2007 20:02, Iris Soto wrote:
I am using poi-3.0-alpha3 and cocoon 2.1.10. I am using Cocoon/Poi
HSSF Serializer.
Brave :) Does Cocoon's HSSFSerializer really work with Poi 3.0?
The cocoon that I am using is someone revision of 2.1.10, this work fine
with poi-3.0-alpha3. I try mix cocoon2.1.10 and
poi-3.0-alpha3 and they didn't work together.
I have many files xml written which are serialized with
HSSFSerializer using a stylesheet, so I need to insert a image in the
file xml and then serialize it.
Don't understand that part.
I want to insert a image in my xml file, after this xml is called in the
pipeline following.
<map:match pattern="documentexcel.xls">
<map:generate src="docs/xml/file.xsp"
type="serverpages"/>
<map:transform src="docs/xml/transformxsl.xsl"/>
<map:serialize type="xls"/>
</map:match>
I want to insert the image in transformxls.xls , I think that the tag
defined for this is: Objects. In a file created
with Gnumeric, the output is:
<gnm:Objects>
<gnm:SheetObjectImage ObjectBound="A1:D5" ObjectOffset="0.938
0.588 0.359 0.588" ObjectAnchorType="16 16 16 16" Direction="17"
crop-top="0" crop-bottom="0" crop-left="0" crop-right="0">
<Content image-type="png"
size-bytes="9130">iVBORw..................
..............................
.......... Here go the content of the image in bytes ....................
..............................
</Content>
</gnm:SheetObjectImage>
</gnm:Objects>
Now, I don't see the tag SheetObjectImage in
http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/.
In transformxsl.xsl file I have:
<gmr:Objects>
<gmr:SheetObjectImage ObjectBound="A1:D5" ObjectOffset="0.938 0.588
0.359 0.588" ObjectAnchorType="16 16 16 16" Direction="17" crop-top="0"
crop-bottom="0" crop-left="0" crop-right="0">
<Content image-type="png"
size-bytes="9130">iVBORw..................
</Content>
</gmr:SheetObjectImage>
</gmr:Objects>
I want to insert a image in the transformxsl.xsl stylesheet, to be
serialized by POI.
Is posible insert a image using HSSF Serializer using tags xml
defined for this?
Is there one?, Which one is the tag defined for this purpose?.
Not that I'm aware of. I also quick-scanned [1] which includes the
element processors and from the names there seems to be no one which
can handle images.
Joerg
[1]
http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/
Iris Soto
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]