Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - >Thread Next - Re: [xsl] Outputting HTML elements with XSLT 1.0 in a column of a table [xsl] Outputting HTML elements with XSLT 1.0 in a column of a tableTo: Date: 5/2/2005 9:55:00 AM 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>')"/>
The parser won't let me do it, because it doesn't like the '<', '/' and '>'.
I've tried using the <xsl:text> using character references for the '<' '>'
't' 'd' '/' in the <td> and the </td> tags it prints the elements in row of
a HTML table. The output I get is:
<td>Element1 Text</td> <td>Element2 Text</td> <td>Element3 Text</td> etc..
Please note the HTML file actually prints the <td> and </td> as text with
the element text!!
The XSLT parser from apache prints the <td> and the </td> elements on the
web page; I won't the elements output in a HTML page in one single column of
a table.
I want to output to be shown like this in a HTML page embedded in a HTML
table:
Element Name
Element1 Text
Element2 Text
Element3 Text
Element4 Text
Etc.
Any suggestions most appreciated.
Thanks Marco Mastrocinque | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
