cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: IMAGE problem
Date Tue, 17 Oct 2000 21:28:05 GMT
marco <m.spinetti@pisa.iol.it> wrote:
>How I do with XSP to introduce a Tag (for a Wml page) of the kind: <img
>alt="example" src="this is a part which changes "/> ? The Src subject
>depends on the research which I do in the Xml file at second of a
>parameter which I take. I have tried with:
>
><IMAGE>
><xsl:for-each select="child::Segno[Zodiaco/text()=$segnou]">
><xsp:logic>
><img alt="immagine" >
>  <xsp:attribute name="src"><xsp:expr><xsl:value-of
>select="./Image/@immagine"/></xsp:expr></xsp:attribute>
></img>
></xsp:logic>
></xsl:for-each>
></IMAGE>
>
>
>  My idea is to put the Tag <img>  inside a Tag <IMAGE>  so that then I
>can take the Tag "Img" with another Xsl ( with the Tag "Xsl :Value-Of
>Select" IMAGE "" ) and insert it in a Wml page .

You don't need to use XSP. You can just do, in xsl:

<img src="{./Image/@immagine}"/>



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Mime
View raw message