BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


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


Uncategorized
Sorting on Dates and other Fixed Formats using the substring Function
Positional grouping by number of items
Parsing XML tag elements with VB string functions
getTemplate
getProcessor
Padding with spaces to a fixed-length string
Re: Swapping values in two integer variables without using a temporary variable
Swapping values in two integer variables without using a temporary variable
Comparing Multiple fields from the subquery
Re: Filtering unique values
Re: Grouping with totals/subtotals -- nested Muenchian method
Grouping with totals/subtotals -- nested Muenchian method
Generic JScript Function To Load XML Data
WebCube Report - Browser-based Multidimensional Data Reporting
The pow(a, b) function
Re: Missing constant definition
A simple template to display singular and plural counts
swapping two integer values without using temporary
Debugging script
Combinations of k out of n numbers


 
 

<< System.XMLWCF, WS, SOAP >>


By Dimitre Novatchev
First Posted 02/26/2001
Times viewed 280

Generating a Pivot Table from name-value pairs


Summary This snippet shows how given a set of name/value pairs for a record from a set of records, to "reconstitute" the whole records.

This problem was first formulated by my friend Corey Haines.
Given a set of name/value pairs for a record from a set of records,
we must reconstitute the whole records.
 
For example, given the xml document specified in this snippet,
the result will be:
 
id,age,cool
1,25,yes
2,27,no
 
This snippet illustrates selecting distinct values by sorting,
and also how to generate plain text.
 
It also demonstrates how to produce a comma-separated list of items (every row).
 
Note how two xsl:variables are defined and used in two nested
xsl:for-each loops in order to produce the two-dimensional table.

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