Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: "Marco Mastrocinque" <mmfive@--------------->
To:
Date: 5/2/2005 10:18:00 AM
Hi Menon,
         I have set the output to html; as you have stated. Everything else
works in my output, but it won't process what I have shown below. That is it
prints it out the <td> and the </td> as parts of the element text in a row
of a HTML table. I won't the parser to print display the element text as
part of a column in a HTML table.

Marco.
  

-----Original Message-----
From: Ramkumar Menon [mailto:ramkumar.menon@xxxxxxxxx] 
Sent: Monday, 2 May 2005 8:08 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Outputting HTML elements with XSLT 1.0 in a column of a
table

Try setting the following at the top level within your XSLT.

<xsl:output method="html"/>

rgds,
Menon

On 5/2/05, Marco Mastrocinque <mmfive@xxxxxxxxxxxxxxx> wrote:
> 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
> 
> 


-- 
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!

-Ramkumar Menon
 A typical Macroprocessor


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent