Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsreport generated in HTMLreport generated in HTML
Previous
 
Next
New Post
12/17/2009 12:13 AM
 

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>

 
New Post
12/17/2009 1:04 AM
 

I was actually able to get the simple example above to work with HTML template visualizer.

However, I'd like to use the XSL Transformation Visualizer so I can do a few more neat things like:

Number the record.

i.e. the first record should be labeled as "1." the second record should be labeled as "2."  -- I'm pretty sure this is possible with XSL transformation.

 
New Post
12/22/2009 8:16 PM
 

Anyone know? Is it a bug in reports module? thanks

 
New Post
2/16/2010 6:18 PM
 

 I'm running into the same issue and notice it is only when you select SQL Server Data Source. If I query the DNN Database and mask the results with the same label from the external SQL server the markup is encoded.

 
New Post
3/18/2010 1:08 AM
 

Hi Patrick,

Not sure what you mean... can you post an example?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsreport generated in HTMLreport generated in HTML


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out