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

RE: No to display the values which are already existin

Subject: RE: No to display the values which are already existing
From: Américo Albuquerque <melinor@xxxxxxx>
Date: Fri, 27 Jun 2003 16:09:00 +0100
RE:  No to display the values which are already existin
Hi

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Tengshe, Ashish
> Sent: Wednesday, June 25, 2003 7:40 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  No to display the values which are already existing
> 
> 
> Thanks, Works fine Now!

You could also use here the muenchian method, something like:
<xsl:key match="Title" name="list" use="Author"/>

<xsl:template match="Store">
 <table>
  <tr>
   <td>Author</td>
   <td>Title</td>
  </tr>
  <xsl:apply-templates mode="header"
select="Title[generate-id()=generate-id(key('list',Author))]"/>
 </table>
</xsl:template>

<xsl:template match="Title" mode="header">
 <tr>
  <td><xsl:apply-templates select="Author"/></td>
  <td><xsl:apply-templates select="Name"/></td>
 </tr>
 <!-- don't need to select the current one because it already have been
displayied -->
 <xsl:apply-templates
select="key('list',Author)[not(generate-id()=generate-id(current()))]"/>
</xsl:template>

<xsl:template match="Title">
 <tr>
  <td><xsl:text> </xsl:text></td>
  <td><xsl:apply-templates select="Name"/></td>
 </tr>
</xsl:template>



 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.