Hello, I am trying to get my xml to format just the way I need it. A little background. I am using a flash piece which has 'site news' displaying with an xml document. I then have another button below the flash piece that says "view all news items", which I am trying to format.

Here is the xml:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="news.xsl"?>
		<date day="30" month="JAN"/>
		<description><![CDATA[<p><a href="http://www.google.com">This is news item number one</a></p>]]></description>
		<date day="23" month="JAN"/>
		<description><![CDATA[<p><a href="http://www.msn.com">This is news item number two</a></p>]]></description>

And the xsl I have so far to display this is:

<?xml version="1.0" encoding="ISO-8859-1" ?> 
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <table bgcolor="#FFFFFF" border="0" cellpadding="5" cellspacing="0">
- <tr bgcolor="#9acd32">
  <th align="left">Date</th> 
  <th align="left">Description</th> 
- <xsl:for-each select="NEWS/item">
- <tr>
- <td>
  <xsl:value-of select="date/@month" /> 
  <xsl:value-of select="date/@day" /> 
- <td>
  <xsl:value-of select="description" /> 

The problem i am having is formatting this so there is no link or paragraph tags where there shouldn't be. I am hoping to accomplish this with som XSL, but my knowledge is limited on what I would have to do.

I could rearrange my flash as well to take out the css, but that as well I am limited....

Any help would be appreciated. Many thanks.

This article has been dead for over six months. Start a new discussion instead.