Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  UDT Data Source and XSL
Previous Previous
 
Next Next
New Post 5/20/2008 7:29 PM
User is offline G.A. Hart
5 posts
10th Ranked


UDT Data Source and XSL 

I am using a UDT data source with the XSL Transformation Visualizer.  I have not been able to apply a stylesheet that works.  The XML source is:
<DocumentElement xmlns="DotNetNuke/UserDefinedTable">
  <QueryResults>
    <Scout>Boy 1</Scout>
    <Den>Wolf</Den>
  </QueryResults>
  <QueryResults>
    <Scout>Boy 2</Scout>
    <Den>Wolf</Den>
  </QueryResults>
</DocumentElement>

I have created a stylesheet and I have used the BasicTable.xsl file that is part of the UDT module.  Both give the the same result of:
Boy 1WolfBoy 2Wolf

I expected:
Boy1
Boy2

The stylesheet is:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:udt="DotNetNuke/UserDefinedTable">
  <xsl:output method="xml" version="1.0" indent="yes" omit-xml-declaration="yes" />
  <xsl:template match="DocumentElement/QueryResults">
    <xsl:value-of select="Scout"/>
    <br/>
  </xsl:template>
</xsl:stylesheet>

If I remove the {xmlns="DotNetNuke/UserDefinedTable"} from the {<DocumentElement xmlns="DotNetNuke/UserDefinedTable">} in the XML source then it works. 

What am doing wrong?

Thanks,
Greg Hart

 
New Post 5/22/2008 11:49 AM
User is offline G.A. Hart
5 posts
10th Ranked


Re: UDT Data Source and XSL 

I have to use the namespace to get it to work  Here is the working XSL:

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:udt="DotNetNuke/UserDefinedTable">
  <xsl:output method="html" omit-xml-declaration="yes"/>
  <xsl:template match="udt:DocumentElement/udt:QueryResults">
    <xsl:value-of select="udt:Scout"/>
    <br/>
  </xsl:template>
</xsl:stylesheet>

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  UDT Data Source and XSL
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com
DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP