RE: [xsl] Outputting HTML elements with XSLT 1.0 in a column of a table

Subject: RE: [xsl] Outputting HTML elements with XSLT 1.0 in a column of a table
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 2 May 2005 11:16:22 +0100
> Hi All,
>        I want to output the following in a concat statement. 
> I have set an
> for-each loop in XSL
> 
> <xsl:value-of select="concat('<td>', ANELEMNT, '</td>')"/>
> 

Don't try to output tags as text! You need to construct nodes in a result
tree, the system will look after serializing these as HTML tags.

You want

<td><xsl:value-of select="ANELEMENT"/></td>

Michael Kay
http://www.saxonica.com/

Current Thread