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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  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

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


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
46 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
1486 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
46 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
1486 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.

 


Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com
T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com

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