[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL equivalent to SQL "unique"

Subject: XSL equivalent to SQL "unique"
From: "Nestel, Frank" <frank.nestel@xxxxxx>
Date: Tue, 17 Apr 2001 19:09:27 +0200
sql unique
Hi,

I've spent some time to figure out an easy way to solve the following
problem and failed, maybe some Guru can give me a clue?

Having XML input like

	<set name="1">
		<a>v1</a>
		<c>v2</c>
		<d>v3</d>
	</set>
	<set name="2">
		<a>v4</a>
		<b>v5</b>
		<e>v6</e>
	</set>
	<set name="3">
		<b>v7</b>
		<f>v8</f>
	</set>

I need to render a quadratic schema like

		a 	b 	c 	d 	e 	f 
	1	v1		v2	v3
	2	v4	v5			v6
	3		v7				v8

in HTML, i.e., I need output like

	<table>
	
<tr><td></td><td>a</td><td>b</td><td>c</td><td>d</td><td>e</td><td>f</td></t
r>
	
<tr><td>1</td><td>v1</td><td></td><td>v2</td><td>v3</td><td></td><td></td></
tr>
	
<tr><td>2</td><td>v4</td><td>v5</td><td></td><td></td><td>v6</td><td></td></
tr>
	
<tr><td>3</td><td></td><td>v7</td><td></td><td></td><td></td><td>v8</td></tr
>
	</table>

Of course all dimensions are variable dependand on underlying
data. I thought, the problem boils down to obtaining the a list like

	<n>a</n><n>b</n><n>c</n><n>d</n><n>e</n><n>f</n>

in a variable from the initial input. But I failed to obtain that, though
I'm fairly sure it has to "be there" :-(

Any help?

Thank you very much,
Frank

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.