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  |  

Vote for DotNetNuke as your choice for winner of this year's PackT Open Source CMS Award
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Define URL in XSL
Previous Previous
 
Next Next
New Post 10/26/2006 12:01 AM
User is offline Peter Zijlstra
44 posts
10th Ranked


Define URL in XSL 
Modified By Sebastian Leupold  on 10/27/2006 3:12:27 PM)

How do i define an URL in the XSL stylesheet. In my xml file the following is defined:

<URL_x0020_aaa><a href="/LinkClick.aspx?link=http%3a%2f%2fwww.xxxxxx.nl&tabid=158&mid=663" target="_blank">www.xxxxxx.nl</a></URL_x0020_aaa> 

<URL_x0020_aaa_UDT_Url>/LinkClick.aspx?link=http%3a%2f%2fwww.xxxxxx.nl&tabid=158&mid=663</URL_x0020_aaa_UDT_Url>

  <URL_x0020_aaa_UDT_Orginal>www.xxxxxx.nl</URL_x0020_aaa_UDT_Orginal>
 
The value www.xxxxxx.nl was entered in the UDT using the URL type setting.
 
In the XSL i defined the following:
 
 <td align="left">
              <a>
               <xsl:attribute name="href">
                 <xsl:value-of select="udt:URL_x0020_aaa_UDT_Orginal" />
            </xsl:attribute>
              </a>
            <br/>
          </td>
 
However, the result of this is that nothing is shown in my table. What do i do wrong?
 
New Post 10/26/2006 1:57 AM
User is offline Stefan Cullmann
1454 posts
6th Ranked








Re: Define URL in xls 

These 3 statements should do this job:

  1. <xsl:value-of select="udt:URL_x0020_aaa" />
  2. <a><xsl:attribute name="href"><xsl:value-of select="udt:URL_x0020_aaa_UDT_Url" /></xsl:attribute></a>
  3. <a><xsl:attribute name="href"><xsl:text>http://<xsl:value-of select="udt:URL_x0020_aaa_UDT_Orginal" /></xsl:text></xsl:attribute></a>

Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

Need to import external data to a UDT? Try http://www.codeplex.com/Csv2UDTImport

 
New Post 10/27/2006 5:26 AM
User is offline Peter Zijlstra
44 posts
10th Ranked


Re: Define URL in xsl 
I set the following in my xsl file:

<td align="left">
              <xsl:value-of select="udt:URL_x0020_aaa"/>
          <a>
            <xsl:attribute name="href"><xsl:value-of select="udt:URL_x0020_aaa_UDT_Url"/></xsl:attribute>
             <xsl:attribute name="href"><xsl:text>http://<xsl:value-of select="udt:URL_x0020_aaa_UDT_Orginal" /></xsl:text></xsl:attribute>
         </a>
            <br/>
          </td>

Now i get the following error in my explorer window:
XSL Tranformation failed. Switched back to DataGrid
StyleSheet:/Portals/0/advendo_agenda17.xsl
 
So i think syntactic, something is incorrect ??

 
New Post 10/27/2006 12:22 PM
User is offline Stefan Cullmann
1454 posts
6th Ranked








Re: Define URL in xsl 

I would suggest that you develop your stylesheets offline. Download your xml and xsl files and test them in your xsl IDE. I prefer working within VS2005 which has great XML/XSL support. Otherwise try for example the xmlspy home edition (http://www.altova.com/support_freexmlspyhome.asp)

I think you might have a simple mistake e.g. a not well formed document. 

PS: IMO your issue did not happen inside the XML module but UserDefinedTable? Please use always the correct forums.


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

Need to import external data to a UDT? Try http://www.codeplex.com/Csv2UDTImport

 
New Post 10/28/2006 5:22 AM
User is offline AGM
26 posts
www.infotechniq.com
10th Ranked


Re: Define URL in xsl 

Hi Stefan,

This is not related to the discussion topic here, sorry about that, I wanted to connect with you on an MS CRM project, if you are interested then let me know how to get in touch with you.

Thanks


AGM
infotechniq Inc.
Technology Solutions for Small Business.
www.infotechniq.com

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Define URL in 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.

 


Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net
WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca

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