Zamek wrote:

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="[EMAIL PROTECTED]:name}" src="[EMAIL PROTECTED]: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/[EMAIL PROTECTED]

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


<img src="document_name/{substring-after(@xlink:href,'#Pictures/')}/>

Regards, Upayavira


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to