RE: [xsl] Calling templates based on node contents

Subject: RE: [xsl] Calling templates based on node contents
From: "Ben Gazzard" <BenG@xxxxxxxxxxxxxx>
Date: Wed, 18 Aug 2004 14:50:45 +0100
Hi David...

Unfortunatly I get the same result with your template as I did with mine.

yours:
<a class="defaultField_default" href="Default url text -- please
update">Default text -- please update</a>
<a class="defaultField_A" href="Default url text -- please update">Default
text -- please update</a>

mine:
<a class="defaultField_default" href="Default url text -- please
update">Default text -- please update</a>
<a class="defaultField_A" href="Default url text -- please update">Default
text -- please update</a>

ideally the output should look like:
<span class="defaultField_default">Default text -- please update</span>
<a class="defaultField_A" href="Default url text -- please update">Default
text -- please update</a>

Different structure based on the contentFieldStyle changing.

Will keep plugging at it though!

Cheers,
Ben

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: 18 August 2004 13:25
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Calling templates based on node contents




  basically trying to find a way of doing this:

  <xsl:call-template name="concat(contentFieldElement, '_',
contentFieldStyle)" />

why do you want to use named templates?

Does the outline that I posted not do more or less what you need?

that uses matching templates and just uses this
concat(contentFieldElement, '_', contentFieldStyle)"
string as needed within the template.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


This e-mail and any attached files are for the exclusive use of the addressee
and may contain privileged and/or confidential information. If you receive
this e-mail in error you should not disclose the contents to any other person
nor take copies but should delete it and telephone us immediately on +44(0)20
7557 6100.

TEQUILA\ London Limited does not make any warranty as to the accuracy or
completeness of this e-mail and we accept no liability for its content or use.
Any opinions expressed in this e-mail are those of the author and do not
necessarily reflect the opinions of TEQUILA\ London Limited.

TEQUILA\ London Limited operates within the parameters set by the Data
Protection Act 1998 with regard to the use of personal information including
e-mail addresses. We accept no liability for the forwarding of this e-mail to
other parties that may result in unsolicited e-mails being received by those
whose email addresses appear in this e-mail.

Current Thread