HTML Encoded Text not displaying in XSLT

X

xanthviper

Hey Guys,

I am a pretty big noob when it comes to XSLT. Hopefully someone can
guide me in the right direction as I haven't been able to find anything
to really match what it is I am looking for. In a nutshell, I have
what I feel is a VERY basic XSLT File that will be working with a data
stream. All of this is being done in ASP.NET. I am able to display all
of the information, except that if there are any HTML tags (<p> or
<div> etc...) that it just displays the html tags, and not actually use
them. I am trying to create an article editor and putting in HTML tags
is the best way, that I see, within the article text and then letting
the browser sort out the data when it comes out. Maybe someone can
point me in the right direction. Here is my XSLT file:

<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:eek:utput method="html"/>

<xsl:template match="/">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<tr>
<td rowSpan="2" width="50%" align="center"><img
src="{NewDataSet/Headlines/AIMAGE}" border="0"/></td>
<td width="50%">
<xsl:value-of select="NewDataSet/Headlines/ATITLE"/>
<br></br>
<br></br>
<br></br>
<br></br>
</td>
</tr>
<tr>
<td width="50%">
By: <a
href="mailto:{NewDataSet/Headlines/EMAILADDRESS}"><xsl:value-of
select="NewDataSet/Headlines/DISPLAYNAME"/></a>
<hr width="85%"/>
Posted: <xsl:value-of select="NewDataSet/Headlines/ADATE"/>
</td>
</tr>
<tr>
<td colSpan="2" width="100%" align="center">
<hr width="85%"/>
</td>
</tr>
<tr>
<td colSpan="2" width="100%">
<xsl:value-of select="NewDataSet/Headlines/ARTICLE"
disable-output-escaping="yes"/>
</td>
</tr>
</tbody>
</table>
</xsl:template>
</xsl:stylesheet>




Thank you in advance and I apologize if I posted in the wrong place. If
so, let me know the correct one if you can.

XV
 
S

Soren Kuula

Hey Guys,
Hi,

I am a pretty big noob when it comes to XSLT. Hopefully someone can
guide me in the right direction as I haven't been able to find anything
to really match what it is I am looking for. In a nutshell, I have
what I feel is a VERY basic XSLT File that will be working with a data
stream. All of this is being done in ASP.NET. I am able to display all
of the information, except that if there are any HTML tags (<p> or
<div> etc...) that it just displays the html tags, and not actually use
them. I am trying to create an article editor and putting in HTML tags
is the best way, that I see, within the article text and then letting
the browser sort out the data when it comes out. Maybe someone can
point me in the right direction. Here is my XSLT file:

The input for XSLT must be XML -- in particular, every element must have
balanced start and end tags:

<p>
blah...
<br></br>
blaahh
</p>

and so on. One </...> for each <...> (if there is no content, they may
be combined into <.../>, like <br/>).

Try with the XML variant of HTML, XHTML.

Soren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top