RE: [xsl] Appl templates

Subject: RE: [xsl] Appl templates
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 25 Apr 2001 17:35:22 +0100
> I am having problems using apply templates all I want to 
> return is the name
> ie Big insurance company, trouble is that I keeping getting everything
> returned.

Simplest solution is to be more selective:

	<xsl:template match="Policy">
		<xsl:apply-templates select="Insurer[@ref='Insur']/Name" "/>
	</xsl:template>

Alternatively define a template that matches Insurer/* and does nothing.

Mike Kay
Software AG

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread