BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


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


Uncategorized
Positional grouping by number of items
Parsing XML tag elements with VB string functions
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
WebCube Report - Browser-based Multidimensional Data Reporting
Re: Missing constant definition
swapping two integer values without using temporary
Debugging script
What is BEEP (BXXP)?
Meta-Patterns: Design Patterns Explained
XML Helper functions in Visual Basic
nodeset of child templates using document()
Converting INI files to XML
Fullxml 2
Sorting the results and use the Axis


 
 

<< System.XMLWCF, WS, SOAP >>


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

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 (1 votes, average 5)

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