BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


Uncategorized
Fullxml 2
Sorting the results and use the Axis
TreeMaker
XMLEditor - WebClipping
WDDX Parser
Templx: x++ IDE Released!
XppEngCOM: COM implementation of x++ interpreter
Backup Outlook mail as XML
Grouping and Summing the values in XML
WDDX Parser (updated bug)
DIME Parser and Generator (C#)
Flash menu using XML
Virtual Directory Utilities for IIS(C#)
ComSerialization
Re: Max() function
Stop Tailoring, Create Generic!!!
Introduction to WAP Push
Add xml binding to select list
Ontology Web Language
Wrapping multiple elements in a parent element


 
 

<< System.XMLWCF, WS, SOAP >>


By Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First Posted 04/16/2002
Times viewed 239

Create an N-Column Table from XML node-set


Summary Transforms a list of elements into a N-column table

I was stuggling with this problem recently and although I knew what approach I wanted to take my XSLT skill wasn't polished enough to implement it. Pedro Gil's solution to the same problem here at TopXML provided me with the missing pieces I needed to create this simplification.

I don't think it gets much more simple than this.

The Ncols parameters defines how many columns you want to output.

Max Hodges, MCP
Web Database Administrator
Dell Computer Japan

(inspired by Pedro Gil's Table with more than one column
Also, credit to Charles White who independently arrived at a very similar solution.)

First I show a very simple case, then I show a more complex case where the production rules for the formation of td tags has been externalized into a separate template for reusability.

Don't forget to vote!

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< System.XMLWCF, WS, SOAP >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML