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 11:50:43 GMT
On Tuesday 03 February 2004 10.33, Upayavira wrote:
> Zamek wrote:
> >How can I translate #Pictures/nnn.png to document_name/nnn.png in xsl?
>
> <img src="document_name/{substring-after(@xlink:href,'#Pictures/')}/>
As you can see I am not an xml expert :-(

Its result is: 
<img src="document_name/10000000000002F40000022DB4BA1A68.png" 
alt="Graphic1">

xsl template is:

<xsl:template match="//draw:image">
  <img alt="{@draw:name}" 
src="document_name/{substring-after(@xlink:href,'#Pictures/')}"/>
</xsl:template>

It is closed to successfully, it need to retrive name of document only.

-- 
thank you,
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