|
Subject: [xsl] Grouping problem - Duplicates From: Sarah <sarah10@xxxxxxxxxxx> Date: Fri, 30 Apr 2004 11:31:54 +0200 |
<Company>
<Suppliers>
<Area>
<North>Supp 1 Nor</North>
<South>Supp 1 Sou</South>
<Center>Supp 1 Cntr</Center>
<North>Supp 2 Nor</North>
<North>Supp 3 Nor</North>
<South>Supp 2 Sou</South>
<South>Supp 3 Sou</South>
<Center>Supp 2 Cntr</Center>
<Center>Supp 3 Cntr</Center>
<North>Smith Suppliers LTD.</North>
<South>Smith Suppliers LTD.</South>
<Center>Sundance suppliers Cntr</Center>
</Area>
<SalesPeople>
<SalesPerson>
<Name>
<LastName>lName Supp 1</LastName>
<FirstName>John</FirstName>
</Name>
<Title>Manager</Title>
<Supplier>Supp 1 Nor</Supplier>
<Supplier>Supp 1 Sou</Supplier>
<Supplier>Supp 1 Cntr</Supplier>
<Supplier>Supp 2 Cntr</Supplier>
<Supplier>Supp 3 Cntr</Supplier>
<Supplier>Smith Suppliers LTD.</Supplier>
<Supplier>Smith Suppliers LTD.</Supplier>
<Supplier>Sundance suppliers Cntr</Supplier>
</SalesPerson>
<SalesPerson>
<Name>
<LastName>lName Supp 2</LastName>
<FirstName>Kathy</FirstName>
</Name>
<Title>CEO</Title>
<Supplier>Supp 2 Nor</Supplier>
<Supplier>Supp 2 Sou</Supplier>
<Supplier>Supp 2 Cntr</Supplier>
<Supplier>Supp 1 Cntr</Supplier>
<Supplier>Supp 2 Cntr</Supplier>
<Supplier>Supp 3 Cntr</Supplier>
<Supplier>Smith Suppliers LTD.</Supplier>
</SalesPerson>
<SalesPerson>
<Name>
<LastName>lName Supp 3</LastName>
<FirstName>Dan</FirstName>
</Name>
<Title>Dr.</Title>
<Supplier>Supp 3 Nor</Supplier>
<Supplier>Supp 3 Sou</Supplier>
<Supplier>Supp 3 Cntr</Supplier>
<Supplier>Supp 1 Cntr</Supplier>
<Supplier>Supp 2 Cntr</Supplier>
<Supplier>Supp 3 Cntr</Supplier>
<Supplier>Smith Suppliers LTD.</Supplier>
<Supplier>Smith Suppliers LTD.</Supplier>
<Supplier>Sundance suppliers Cntr</Supplier>
</SalesPerson>
<SalesPerson>
<Name>
<LastName>lName Apprentice</LastName>
<FirstName>George</FirstName>
</Name>
<Title>Apprentice</Title>
<Supplier>Supp 3 Nor</Supplier>
</SalesPerson>
<SalesPerson>
<Name>
<LastName>lName Samuel</LastName>
<FirstName>Dave</FirstName>
</Name>
<Title>Developer</Title>
<Supplier>Supp 3 Nor</Supplier>
<Supplier>Supp 3 Sou</Supplier>
<Supplier>Supp 3 Cntr</Supplier>
<Supplier>Supp 1 Cntr</Supplier>
<Supplier>Supp 2 Cntr</Supplier>
</SalesPerson>
</SalesPeople>
</Suppliers>
</Company>Dave lName Samuel John lName Supp 1 Kathy lName Supp 2 Dan lName Supp 3
John lName Supp 1 Kathy lName Supp 2 George lName Apprentice Dave lName Samuel Dan lName Supp 3
John lName Supp 1 Kathy lName Supp 2 Dave lName Samuel Dan lName Supp 3
Dave lName Samuel John lName Supp 1 Kathy lName Supp 2 Dan lName Supp 3 Dave lName Samuel John lName Supp 1 Kathy lName Supp 2 Dan lName Supp 3 Dave lName Samuel John lName Supp 1 Kathy lName Supp 2 Dan lName Supp 3 John lName Supp 1 Dan lName Supp 3
John lName Supp 1 Kathy lName Supp 2 George lName Apprentice Dave lName Samuel Dan lName Supp 3 John lName Supp 1 Kathy lName Supp 2 Dan lName Supp 3
John lName Supp 1 Kathy lName Supp 2 Dave lName Samuel Dan lName Supp 3 John lName Supp 1 Kathy lName Supp 2 Dan lName Supp 3
<xsl:key name="areas" match="//Area/*" use="name()"/> <xsl:key name="supplier-list" match="SalesPerson" use="Supplier"/> <xsl:key name="fullName" match="SalesPerson" use="Name"/>
</xsl:for-each>
</xsl:for-each> </body>
</html>
</xsl:template><xsl:template match="Name">
<xsl:param name="curr_supp"/>
<xsl:param name="curr_area"/> <xsl:variable name="fName" select=".">
</xsl:variable></xsl:template> </xsl:stylesheet>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] xsl:variable with a xsl:c, David Carlisle | Thread | RE: [xsl] Grouping problem - Duplic, Michael Kay |
| Re: [xsl] xsl:variable with a xsl:c, David Carlisle | Date | [xsl] xmlns="" ??, Arthur Maloney |
| Month |