|
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.
| Further additional information | |
Updating comments...
Updating comments...
|
|