PDA

View Full Version : XSL help?



Anthraxnz
12 Oct 2008, 03:00 AM
can anyone here help me with some XSL\HTML?

i have the following XSL code running to pull the content from a XML file.


<xsl:template match="ROW">
<table id="blogout" border="1">
<tr>
<td><xsl:apply-templates select="B_AUTHOR"/></td>
<td><xsl:apply-templates select="B_TITLE"/></td>
<td><xsl:apply-templates select="B_BODY"/></td>
</tr>
</table>
</xsl:template>

<xsl:template match="B_AUTHOR">
<span style="color:#ff0000">
<xsl:value-of select="."/></span>
</xsl:template>

<xsl:template match="B_BODY">
<xsl:value-of select="."/>
</xsl:template>

</xsl:stylesheet>

what i need is to put table output into a scroll box, but when i use the typical HTML method i get each of select statements in a scroll box; what i need is all the select statements in ONE scroll box sort of thing.

heres some screen shots.
Current:
http://i124.photobucket.com/albums/p28/Anthraxnz/random/site2.jpg

What i would like:
http://i124.photobucket.com/albums/p28/Anthraxnz/random/site1.jpg

so everything thats pulled from the XML document is put inside that grey box.

Cheers :)