cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zamek <za...@vili.pmmf.hu>
Subject Re: Openoffice generator
Date Tue, 03 Feb 2004 09:05:54 GMT
Hello,

On Monday 02 February 2004 13.02, Reinhard Poetz wrote:
> Have a look at the scratchpad (CVS or wait for 2.1.4). You'll find some
> ZIP-Source samples and one is an Openoffice.org one.

It is a good idea, and works well, but :-)

If my Openoffice document has some images I cannot retrieve it, because 
reference of images is #Pictures/nnnn.png

I am using ooo2html.xsl from Zope. It handles pictures like:

<xsl:template match="//draw:image">
  <img alt="{@draw:name}" src="{@xlink:href}" />
</xsl:template>

@xlink:href value is #Pictures/nnn.png, but it is only a relative link, 
instead of absolute which is containing document name.

The protocol is zip://Pictures/{2}.png@{1}.sxw

How can I translate #Pictures/nnn.png to document_name/nnn.png in xsl?

-- 
thx,
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message