xsl-list
[Top] [All Lists]

Looking for the rigth select statement

2002-11-28 08:38:35
Hi all,

I asked about "selecting multple elements only once"... With your help, I've got following output now:

                   departement1 departement2  departement3  departement4
Manager Assistant
Employee
Worker

that's from this xml-source:

<departement name="departement1">
<profession>
  <desc>Manager</desc>
  <salary>5000</salary>
</profession>

<profession>
  <desc>Assistant</desc>
  <salary>3000</salary>
</profession>

<profession>
  <desc>Employee</desc>
  <salary>2000</salary>
</profession>
</departement>

<departement name="departement2">
<profession>
  <desc>Manager</desc>
  <salary>6000</salary>
</profession>

<profession>
  <desc>Worker</desc>
  <salary>2000</salary>
</profession>
</departement>

[...]

Now I want to select the salary and put it to the right position. Output should be following:

departement1 departement2 Manager 5000 6000 Assistant 3000 ... <!-- "..." because there is no assistant in departement2--> Employee 2000 ... <!-- "..." because there is no Employee in departement2--> Worker ... 2000 <!-- "..." because there is no Worker in departement1-->


Thanks very much

Sorin Marti


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