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  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  UDT Data Source and XSL
Previous Previous
 
Next Next
New Post 5/20/2008 6:29 PM
User is offline G.A. Hart
3 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 10:49 AM
User is offline G.A. Hart
3 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.

 


Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com
Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com

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