|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
How do I produce an output that is similar to a group by statement in sql.. basically where you may have the same manufacturer listed several time in my xml table thought I has something to do with maxOccurs="1"/ but I am not sure how to code it. Any help would be very much appreciated. <?xml version="1.0" encoding="iso-8859-1" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html> <body> <h2>My CD Collection</h2> <table border="1"> <tr bgcolor="#9acd32"> <th>Title</th> </tr> <xsl:for-each select="BizTalk/Body/Offers/Offer"> <xsl:sort select="Manufacturer" order="ascending"/> <tr> <td><xsl:value-of select="Manufacturer"/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Group By... maxOccurs="1" ????? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|