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

RE: Match multiple times output once

Subject: RE: Match multiple times output once
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 28 Aug 2005 23:40:04 +0100
match multiple times
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:  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

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.