RE: [xsl] xsl:variable question

Subject: RE: [xsl] xsl:variable question
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Mon, 28 Feb 2005 13:25:16 +0200

>     What you are doing right now is adding the <img> element
> to your output
> tree.

No, he's generating an RTF and binging that to a variable.

> If you need the value of img in your variable, then you
> need to use
> <xsl:value-f select="..."/> construct.

xsl:value-of instruction extracts the string value of whatever's selected, and
img elements in XHTML are empty element, so you'd ge nothing.

> Adding the string representation of your img element shouldn't be too
> difficult.

img is an empty element, it's string representation is an empty string.



Current Thread