Thread: XML/XSL Help!
View Single Post
Old 10-24-2008, 09:42 PM   #9
Barnes
Franchise Player
 
Barnes's Avatar
 
Join Date: Aug 2005
Location: Violating Copyrights
Exp:
Default

Yeah I've read most of the w3school content on xml and xslt unfortunately.

Okay, here goes.

An MFC application that will be used by our support department creates and uploads the XML file.

The XML file contains important information for our customers in the form of a news window which is really a custom IE 6 instance launched from our application and rendered by the XSL file to look nice.

The XML file looks like this:
Code:
<item>
<title>New Version Available</title>
<date>Oct 20th</date>
<copy>We are pleased to announce version 2.0 of our software. This new version includes many new enhancements as well as bug fixes. This update can be downloaded by launching your software update. Training is also available. Contact your sales person for more info.</copy>
</item>
The XSL style sheet that renders it looks something like this:
Code:
<table>
<tr>
<td><xsl:value-of select="title"/></td>
</tr>
<tr>
<td><xsl:value-of select="date"/></td>
</tr>
<tr>
<td><xsl:value-of select="copy"/></td>
</td>
<table
The result in the browser is this:

New Version Available

Oct 20th

We are pleased to announce version 2.0 of our software. This new version includes many new enhancements as well as bug fixes. This update can be downloaded by launching your software update. Training is also available. Contact your sales person for more info.


I need it to look like this in the browser:

New Version Available

Oct 20th

We are pleased to announce version 2.0 of our software. This new version includes many new enhancements as well as bug fixes.

This update can be downloaded by launching your software update.

Training is also available.

Contact your sales person for more info.


How do I get the separate paragraphs?
Barnes is offline   Reply With Quote