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 ForumsReportsReportsTroubles With XSLT and UDT(form And LIst) DatasourceTroubles With XSLT and UDT(form And LIst) Datasource
Previous
 
Next
New Post
12/7/2009 7:06 AM
 

Hi all,

hoping someone can help me out here as I am a definite NOOB here. I am trying to get my reports module to run a XSLT  on output from the UDT( form and List)  datasource. The issue I face is that it shows no data in the table when I run the report. My aim here is to show a report that shows "Driver Name" and "Total" (which is a calculated column in UDT of R1+R2+...+R10)

When I click the "Show XML Source" link I get this :-

<DocumentElement xmlns="DotNetNuke/UserDefinedTable">
  <QueryResults>
    <Driver_x0020_Name>XXX AAA</Driver_x0020_Name>
    <R1>24</R1>
    <R2>0</R2>
    <R3>0</R3>
    <R4>0</R4>
    <R5>0</R5>
    <R6>0</R6>
    <R7>0</R7>
    <R8>0</R8>
    <R9>0</R9>
    <R10>0</R10>
    <CC>0</CC>
    <Total>24</Total>
  </QueryResults>
  <QueryResults>
    <Driver_x0020_Name>YYY BBB</Driver_x0020_Name>
    <R1>20</R1>
    <R2>0</R2>
    <R3>0</R3>
    <R4>0</R4>
    <R5>0</R5>
    <R6>0</R6>
    <R7>0</R7>
    <R8>0</R8>
    <R9>0</R9>
    <R10>0</R10>
    <CC>0</CC>
    <Total>20</Total>
  </QueryResults>
 

The XSL template I am using is this :-

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>

<xsl:template match="/">
  <h2>Enduro Driver Standings</h2>
    <table border="1">
      <tr class="Subhead DNN_Reports_Grid_Header" align="left">
        <th width="200">Driver</th>
        <th width="200">Points</th>
      </tr>
      <tr class="Normal DNN_Reports_Grid_Row" align="left"> 
  <xsl:for-each select="/QueryResults">
   <tr class="Normal DNN_Reports_Grid_Row" align="left">
   <td><xsl:value-of select="Driver Name" disable-output-escaping="yes" /></td>
   <td><xsl:value-of select="Total" disable-output-escaping="yes" /></td>

   </tr>
  </xsl:for-each>
      </tr>
    </table>
</xsl:template>
</xsl:stylesheet>

All I get  on the output is the table heading and nothing else. What am I missing????????????? This is driving me nuts.

I am running Reports 5.1 with form and List 5.0.3 and DNN 5.1.04....

If I only select Driver Name and Total, I get an error saying that other columns are required to calculate. I have also tried just showing one column, and also all columns to no avail. I have tried also changing "Driver Name' to " Driver_x0020_Name" but this has made no difference either.

If I use the HTML Visulizer, I can get the data to display, but this shows no headers so XSLT seems to be the only option for me. Is there any other troubleshooting techniques I can use or have I made a mistake in my XSL template.

Out of Breath Now, Sorry,

Thanks in advance

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsTroubles With XSLT and UDT(form And LIst) DatasourceTroubles With XSLT and UDT(form And LIst) Datasource


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