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 Listtwo column BasicTabletwo column BasicTable
Previous
 
Next
New Post
2/17/2007 12:49 PM
 

A little help on XML/XSLT... I'm trying to transform BasicTable.xsl in the UDT/StyleSheets into a two or three column stylesheet.  I'm using a post on oxygen editor as my guide.  I've got it doing the first column in each row, but not the rest...any help out there?

 
New Post
2/18/2007 5:49 AM
 

I don't not sure whether I understand your issue. Are you talking about transposing your table?
(http://en.wikipedia.org/wiki/Transpose)

 
New Post
2/18/2007 11:18 AM
 

I'm trying to transpose, sort of.  I trying to take BasicTable.xsl and make it a basic, two or three column table.

Here is the xsl file I've come up with.  It generates the 1st column in the row okay, but the 2nd and 3rd columns don't show.  The example (which isn't DNN, but the basic concept applies) I'm using employs:

    <xsl:for-each select=".|
    following-sibling::option[position() &lt; 3]">

But I think I'm missing something to populate data in each cell in the 2nd and 3rd columns.  DNN may not be the best forum for this.  If you've got a suggestion for a better forum, lemme know.  Cheers.

 
New Post
2/18/2007 12:30 PM
 

Ok, you example makes something like this, it takes a table which has only a single column table like

ColumnA
A1
A2
A3
A4
A5
A6
A7

and returns it as

A1 A2 A3
A4 A5 A6
A7    

Now normally a UDT consists of more than one column, so you have usually somethin like

ColumnA ColumnB ColumnC
A1 B1 C1
A2 B2 C2
A3 B3 C3
A4 B4 C4
A5 B5 C5

I am not sure what kind of result you are going to expect.

ColumnA: A1
ColumnB: B1
ColumnC: C1
ColumnA: A2
ColumnB: B2
ColumnC: C2
ColumnA: A3
ColumnB: B3
ColumnC: C3
ColumnA: A4
ColumnB: B4
ColumnC: C4
ColumnA: A5
ColumnB: B5
ColumnC: C5
 

BasicTable.xsl is working against any table definitions, it is generic. Do you want to have an example that is working against any UDT?
It is quite simpler to write your stylesheet against a known table structure!

Even if you want to write an generic three coulmn solution, I would not start with BasicTable.xsl as its base. 

Please provide us with an example of your idea - structure of your data and wanted result. I am not able to gather these information out of your current stylesheet.

 
New Post
2/18/2007 2:20 PM
 

Sorry, I realized I wasn't explaining it correctly or clearly (which probably explains some of the problem I'm having accomplishing this).  I'll get more concrete and try and explain it better.


I've got a 60-180 rows of scheduling information, on my website www.ouramen.org that isn't that wide (using the basictable.xsl):

Date Mass Time EMHC Server Status
A1 A2 A3 A4
B1 B2 B3 B4

So want to put multiple logical ROWS of XML schedule information on one physical table ROW, because I've got all this information scrolling down the left side of the page, with all this white space on the right. So I want to double up, something like (modified two logical rows per physcial line/row):

Date
Mass Time
EMHC Server
Status
Date
Mass Time
EMHC Server
Status
A1 A2 A3 A4 B1 B2 B3 B4

So it seems like it'd be easy enough to start with the basictable.xsl and work from there, do you think? or do you have a better idea?  Thanks for your time, patience and input.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listtwo column BasicTabletwo column BasicTable


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