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 ForumsForm and ListForm and ListXSL - blank?XSL - blank?
Previous
 
Next
New Post
7/23/2007 1:48 PM
 

I'm trying to get the idea of how to use XSL on the UDT, but I think I'm having trouble getting the matching. The table just shows up completely blank, but literal data outside the FOR EACH will show.

It looks basically like this except in xml brackets [Department and Name are table columns]:

xsl:stylesheet version="1.0" xmlns:xsl=http://www.w3.org/1999/XSL/Transform

xsl:output method="xml" version="1.0" indent=yes" omit-xml-declaration="yes"/

xsl:template match="/userdefinedtable"

xsl:for-each select="Data"

xsl:value-of select="Name"/

&#160

xsl:value-of select="Department"/

BR

BR

/xsl:for-each

/xsl:template

/xsl:stylesheet

xmlns:udt="DotNetNuke/UserDefinedTable"

 
New Post
7/23/2007 1:57 PM
 
  1. userdefinedtable is wrong, please remember that xml/xsl is case aware
  2. all UDT data is defined in the namespace "DotNetNuke/UserDefinedTable", so define it inside your stylesheet definition AND use the defined shortcut for every element and attribute.
  3. study the predefined stylesheets as example
 
New Post
7/23/2007 2:29 PM
 

this got me a little stumped:

//udt:Data[udt:UserDefinedRowId=$id]/*[name()=$NameOfValueColumn]

p.s. UserDefinedTable is right in the actual sheet I just retyped it fast to get rid of the angle brackets because they were causing trouble in FCK,but I do follow you...

 
New Post
7/23/2007 2:45 PM
 

<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:u="DotNetNuke/UserDefinedTable">
  <xsl:output method ="xml" indent ="yes"  omit-xml-declaration ="no"/>
  <xsl:template match ="u:UserDefinedTable">
    <xsl:for-each select ="u:Data">
      <xsl:value-of select ="u:Name"/>&#160;
      <xsl:value-of select ="u:Department"/>
      <br />
      <br />
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>
 
New Post
7/23/2007 3:10 PM
 

Stefan Cullmann wrote

<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:u="DotNetNuke/UserDefinedTable">
ah, I left out the DotNetNuke there...(I did however capitalize UserDefinedTable correctly...)
Wow, you're good.  I shall now try to make it complicated
(of course you did the hard part)
I now have it working and it transforms the table into a way that javascript rotatese through the new employees here(with their names and departments under it).
Thanks to you I've even got the little edit row pencil rotating with the person it goes with!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListXSL - blank?XSL - blank?


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