When I generate a report, it shows up in HTML (html code rather than rendered text) format using an XSL Transformation Visualizer.
I've gotten far enough to get it to generate the proper HTML so that if I paste it into notepad and save as HTML, it looks great when opening in a browser.
I can't figure out how to decode/render the HTML. I don't know how to use the "Encode" or "Decode" HTML fields..
Any help?
Thanks...
__________
Here's my SQL statement:
SELECT dbo.Wiki_Topic.Name, dbo.Wiki_Topic.Content, dbo.Wiki_Topic.UpdateDate
From dbo.Wiki_Topic
WHERE dbo.Wiki_Topic.ModuleID=###
AND dbo.Wiki_Topic.Name<>'WikiHomePage'
ORDER BY Name
__________
Here's my wiki-to-book.css (located at http://www.mysite.org/Portals/0/wiki-to-book/wiki-to-book.css)
.titlecell {background-color:#000000; color:#FFFFFF; font:Verdana, Arial, Helvetica, sans-serif; font-weight:bold; vertical-align:middle; font-size:14px; padding-bottom:7px; padding-top:7px; padding-left:7px;}
.contentcell {background-color:#FFFFFF; color:#000000; font:Verdana, Arial, Helvetica, sans-serif; font-weight:normal; vertical-align:middle; font-size:12px; padding-bottom:7px; padding-top:7px; padding-left:7px;}
.last_updated_text {text-align:right; font-size:9px; font-style:italic;}
______________
Here's my wiki-to-book.xsl located at http://www.mysite.org/Portals/0/wiki-to-book/wiki-to-book.xsl)
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" >
<xsl:output method="html" indent="yes"/>
<xsl:variable name="baseDir">http://www.mysite.org/Portals/0/wiki-to-book</xsl:variable>
<xsl:template match="//DocumentElement"><link href="{$baseDir}/wiki-to-book.css" rel="stylesheet" type="text/css" />
<xsl:apply-templates select="QueryResults" />
</xsl:template>
<xsl:template match="QueryResults">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="titlecell">
<xsl:value-of select="Name" />
</td>
</tr>
<tr>
<td class="contentcell"><xsl:value-of select="Content" /><br /><br /><span class="last_updated_text">Last updated: <xsl:value-of select="UpdateDate" />
</span></td>
</tr>
</table>
<p style="clear:both;"> </p>
</xsl:template>
</xsl:stylesheet>