[xsl] Appl templates

Subject: [xsl] Appl templates
From: Jason Swalwell <jasons@xxxxxxxxxx>
Date: Wed, 25 Apr 2001 17:19:50 +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
	<Insurer ref="Insur">
		<Name>Big Insurance Company Ltd</Name>
		<PointOfContact ref="A" xsi:type="Employee">
			<Department>Household Schemes</Department>
		<Address xsi:type="UKAddress">
			<AddressHeader>Big House</AddressHeader>
			<AddressLine>West Big Park</AddressLine>
			<Postcode>AA1 1AA</Postcode>
		<CommunicationsChannel xsi:type="Telephone">
			<TelephoneNumber>657483 ext45</TelephoneNumber>

and a style sheet
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	<xsl:output method="xml" version="1.0" encoding="UTF-8"
	<xsl:template match="Policy">
		<xsl:apply-templates select="Insurer[@ref='Insur']" "/>
	<xsl:template match="Name" name="CoName">
	<b>Company Name :</b> <xsl:value-of select="."/><br/>


The information in this E-Mail is confidential and may be legally privileged. It may not represent the views of WebX Limited. It is intended solely for the addressees. Access to this E-Mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.  Any unauthorised recipient should advise the sender immediately of the error in transmission.

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

Current Thread