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  |  

Affordable ASP.NET Hosting Service
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
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.
SteadyRain
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  Outputting HTML in XSLT
Previous Previous
 
Next Next
New Post 9/8/2007 11:36 AM
User is offline Andreas Kyster
9 posts
10th Ranked


Outputting HTML in XSLT 

How would i go about outputting HTML as part of a transformation ?

I have tried this:

<td><a href=&quot;<xsl:value-of select="Email" />&quot;><xsl:value-of select="FirstName" /><xsl:text> </xsl:text><xsl:value-of select="LastName" /></a></td>

But it comes out as literal text and not HTML formatted. The XSL is substituted fine.

Any thoughts ?

 
New Post 9/16/2007 4:31 PM
User is offline Andrew Nurse
366 posts
8th Ranked






Re: Outputting HTML in XSLT 

XSLT is designed to work inside XML documents (such as XHTML) for exactly this purpose. In your case, you should use the "xsl:attribute" element as in the example below, instead of placing the XSL directly inside the 'href' attribute

<td><a><xsl:attribute name="href"><xsl:value-of select="Email" /></xsl:attribute> ... (the rest of your XSLT looks fine) ... </a></td>

The xsl:attribute element executes the XSLT elements within it and puts the value into the attribute specified by "name" of the parent (in this case the "<a>" element).

You might want to do some google searching for XSLT tips, I'm not an expert but its a really powerful language.


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post 9/22/2007 6:36 AM
User is offline Stefan Cullmann
1572 posts
5th Ranked








Re: Outputting HTML in XSLT 

or even shorter:

<td><a href="{Email}"> ... </a></td>


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  Outputting HTML in XSLT
 


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.

 


SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com

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