[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Outputting HTML elements with XSLT 1.0 in a column of

Subject: Outputting HTML elements with XSLT 1.0 in a column of a table
From: "Marco Mastrocinque" <mmfive@xxxxxxxxxxxxxxx>
Date: Mon, 2 May 2005 19:54:40 +1000
xslt outputting html
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.