Subject:Re: embed in href='' Author:(Deleted User) Date:22 Aug 2002 09:14 AM
At 07.19 22/08/2002 -0400, you wrote:
>Nearly but not quite - I can't get the { to work at all
Strange; <a href="{URL}"><img
src="{PICTURE}"></img></a>
works fine for me. Remember, you need to put between { and } the XPath
expressions only, not the entire xsl:value-of (the { } syntax is a shortcut
for xsl:value-of)
>so I tried it with xsl:element and ran into this problem. The HTML I want is:
>
><A HREF="xurl"><IMG src="xsrc"></IMG></A>
>
>where xurl and xsrc are the xsl:value-of results of two XML elements.
>
>with the <xsl:element> route I can do the <A> tag but I can't
>then embed the <IMG> tag inside it - it generates and error...
To embed the IMG tag with the second construct, you need to nest another
xsl:element statement inside the first one, like