Subject: Re: [xsl] Selecting multi-existant elements only once From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Mon, 25 Nov 2002 18:25:15 +0100 |
<xsl:for-each select="//departement/profession[not(desc=preceding::desc)]">
I wrote:Hi all,
I've got a XML-File with following structure. There are different departements and in each departement there are different professions. I want to have every profession of all departement once... If there is a Manager in departement a and departement b, "Manager" should only be printed out once...
How can I do that?
[...] <departement> <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> <profession> <desc>Manager</desc> <salary>5000</salary> </profession>
<profession> <desc>Worker</desc> <salary>2000</salary> </profession> </departement>
[...]
Thanks for your help !
Sorin
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Selecting multi-existant , Vasu Chakkera | Thread | RE: [xsl] Selecting multi-existant , TSchutzerWeissmann |
Re: [xsl] xsl:key on variable conta, Grainne Reilly | Date | [xsl] XSLTC Is The Only XSLT Compil, W. Eliot Kimber |
Month |