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 ForumsXMLXMLDefine URL in XSLDefine URL in XSL
Previous
 
Next
New Post
10/26/2006 3:01 AM
 

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 4:57 AM
 

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>
 
New Post
10/27/2006 8:26 AM
 
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 3:22 PM
 

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.

 
New Post
10/28/2006 8:22 AM
 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLDefine URL in XSLDefine URL in XSL


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