xsl-list
[Top] [All Lists]

RE: Match multiple times output once

2005-08-28 15:40:04
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(_dot_)SINGH(_at_)Tenix(_dot_)com] 
Sent: 28 August 2005 23:12
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>