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 ForumsReportsReportsVisualiser IssuesVisualiser Issues
Previous
 
Next
New Post
9/19/2007 9:02 PM
 

HI

 

a few questions:

First: how do I create a report that displays a new record in each cell of a table.. for instance currently if I do this

[FieldName] [FieldName]

it returns this

result1 result1
result2 result2
result3 result3

 

but what I need is this

result1 result2
result3 result4
result5 result5

how do I do it??

 

 

Second question does the HTML file automatically use the skin CSS?

if not how do I connect the CSS in a similar manrrer as using the <%=skinpath%>?

 

Third question how do I link images fron the portal root file/folder to the transformed HTML page?

Fourth Question does the HTML page only need the tags between to body tags or does the uploaded HEML file need to be a fully taged page: <html><head></head><body></body></html>  etc..?

thanks

 
New Post
9/25/2007 12:20 AM
 

Just putting this question back on top..I still need an answer 

 

regards

 
New Post
9/25/2007 2:10 AM
 

1) The HTML Visualizer does not support this in the current version. The more powerful XSLT Visualizer should be able to do what you need. If you are running the most recent version of Reports, you can see a sample of the XML that is passed to the stylesheet provided in the Visualizer by going to the Module Settings page and selecting "Show Xml Source". I don't know a lot about XSLT but maybe others can provide more details, or there are plenty of XSLT resources out on the web.

2) It should, it is basically injected into the page, so it will use all the CSS files applied to that particular page

3) You'll have to use relative urls, using the DesktopModules/Reports folder as a base, so to get back to the root you prefix your url with '../../'. For example (~/Portals/0/images/foo.gif => ../../Portals/0/images/foo.gif). This may be updated in a future version

4) Just the content between the body tags.


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
9/25/2007 10:54 PM
 

Andrew thanks for the reply.  Ive sorted out how to do what I want in XSL (outside of DNN) but dont know how to attach the DNN data source to the XSL?

This is what I'm doing

<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="data.xml" -->

<!DOCTYPE xsl:stylesheet  [
 <!ENTITY nbsp   "&#160;">
 <!ENTITY copy   "&#169;">
 <!ENTITY reg    "&#174;">
 <!ENTITY trade  "&#8482;">
 <!ENTITY mdash  "&#8212;">
 <!ENTITY ldquo  "&#8220;">
 <!ENTITY rdquo  "&#8221;">
 <!ENTITY pound  "&#163;">
 <!ENTITY yen    "&#165;">
 <!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:include href="FillerCells.xsl"/>

<!-- Page configuration variables -->
<xsl:variable name="cellsPerRow" select="3"/>
<xsl:variable name="imageWidth" select="120"/>
<xsl:variable name="imageHeight" select="160"/>
<xsl:template match="/">

<table border="1" cellspacing="3" cellpadding="3">
     
     <xsl:apply-templates select="DocumentElement"/>
    </table>


</xsl:template>


<!-- Build Careers List Rows -->
<xsl:template match="DocumentElement">
 <xsl:for-each select="QueryResults[position() mod $cellsPerRow = 1]">
  <tr>
  <xsl:apply-templates
   select=".|following-sibling::QueryResults[position() &lt; $cellsPerRow]"/>
  </tr>
 </xsl:for-each>
</xsl:template>

<!-- Build Careers List Cells -->
<xsl:template match="QueryResults">
 <td class="PhotoCell" align="center">
   
   
    <div align="center" class="CareerButtons">
   
<table border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td width="8px"  class="BL_ButtonLeft"></td>
    <td class="BL-buttonLable_BG">
   
           <a class="ButtonLink"><xsl:attribute name="href">../default.aspx?tabid=<xsl:value-of select="TabID" /></xsl:attribute><xsl:value-of select="TabName" /></a>
   
    </td>
    <td width="7px" class="BL_ButtonRight"></td>
  </tr>
</table>

</div>
   
  
  <br clear="all"/>
  </td>
 <xsl:if test="(position() = last()) and (position() &lt; $cellsPerRow)">
  <xsl:call-template name="FillerCells">
   <xsl:with-param name="cellCount" select="$cellsPerRow - position()"/>
  </xsl:call-template>
 </xsl:if>
</xsl:template>


</xsl:stylesheet>

 

But when I try to use it in DNN I get the following error

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.

i have no Idea what that mean and how to fix it..

  1. So how do I pass the DNN datasource to my XLS?
  2. Can I use the XSL in DNN reports that way I'm doing it?
  3. How do I fix the DTD  issue/? or is it caued by the other problems?

regards

 
New Post
9/26/2007 12:27 AM
 
  1. You don't need to pass the data, you don#t need to define any XMLSource/ data island etc in your stylesheet.
  2. I am not sure whether the inculde is allowed inside reports, and you need to remove the DTD entity definition.
    All other code looks fine and should work if it matches the XML source
  3. Remove
    <!DOCTYPE xsl:stylesheet  [
     <!ENTITY nbsp   "&#160;">
     <!ENTITY copy   "&#169;">
     <!ENTITY reg    "&#174;">
     <!ENTITY trade  "&#8482;">
     <!ENTITY mdash  "&#8212;">
     <!ENTITY ldquo  "&#8220;">
     <!ENTITY rdquo  "&#8221;">
     <!ENTITY pound  "&#163;">
     <!ENTITY yen    "&#165;">
     <!ENTITY euro   "&#8364;">
    ]>
    Use &#160; instead of &nbsp; inside your XSL script... I don't see any use of these entities in this part of the script, though it may be used in your include "FillerCells.xsl".

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsVisualiser IssuesVisualiser Issues


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