RE: [xsl] Appl templates

Subject: RE: [xsl] Appl templates
From: "John Wang" <jwang@xxxxxxxxxxx>
Date: Thu, 26 Apr 2001 15:27:36 -0500
try this.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
	<xsl:template match="policy">
				<xsl:apply-templates select="Insurer[@ref=&apos;Insur&apos;]/Name"/>
	<xsl:template match="Name" name="CoName">
		<b>Company Name :</b>
		<xsl:value-of select="."/>

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jason Swalwell
Sent: Wednesday, April 25, 2001 11:20 AM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: [xsl] Appl templates


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:

 XSL-List info and archive:

Current Thread