RE: [xsl] Match multiple times output once

Subject: RE: [xsl] Match multiple times output once
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 28 Aug 2005 23:40:04 +0100
Dont you just want

<xsl:for-each select="relation[attribute::className='a'][1]"> 
  ...

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: SINGH Navpreet [mailto:Navpreet.SINGH@xxxxxxxxx] 
> Sent: 28 August 2005 23:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Match multiple times output once
> 
> Hi
> I am having trouble with xsl:call-template. 
> <xsl:for-each select="relation[attribute::className='a']">
> 	<xsl:call-template name="b1_u_populate">
> 		<xsl:with-param name="rhs"><xsl:value-of  
> select="node[attribute::className='b']/PartNumber"/></xsl:with-param>
> 	</xsl:call-template>
> </xsl:for-each>
> I have multiple relation child element of the root element. I 
> want to call call-template only once. So whenever the above 
> condition is true and the xsl:call-template is called once 
> the loop shold be existed. Can you please suggests me any solution.
> 
> Thanks,
> Navpreet

Current Thread