Re: [xsl] calling templates

Subject: Re: [xsl] calling templates
From: paul.bezault@xxxxxxxxx
Date: Mon, 21 Jun 2004 12:47:23 +0200
" if u have an xml file like this:
<main>
<name>
<desc>
<link></link>
<section></section>
.........(the any number of section an dlink tags in any order)
</main>

and u had a template match currently in main, how would u do an
<xsl:apply-templates /> on all the <link> and <section> tags but not the
<name> and <desc> tags?

i thought about <xsl:apply-templates select="link" /> and then
<xsl:apply-templates select="section" /> but that would do it in two
groups,
i would like to apply the template sin the order they appear in the xml
file......
can anyone help
cheers
james walker "

- - - -

You just have to use <xsl:apply-template/> in the template that match the
<main> and it will use all your template like <xsl:template match="link">
and <xsl:template match="section">.






******************************************************************
The sender's email address has changed to 
firstname.lastname@ sgcib.com. You may want to update your 
personal address book. Please see http://www.sgcib.com for more 
information.
                               **
This message and any attachments (the "message") are confidential
and intended solely for the addressee(s). Any unauthorised use or
dissemination is prohibited. E-mails are susceptible to alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
shall be liable for the message if altered, changed or falsified.
                         ***************
L'adresse mail  de votre correspondant a change en prenom.nom@ sgcib.com.
Il est recommande de mettre a jour votre carnet d'addresse
personnel.Pour plus d'informations, aller  sur http://www.sgcib.com
                               **
Ce message et toutes les pieces jointes (ci-apres le "message")
sont confidentiels et etablis a l'intention exclusive de ses
destinataires. Toute utilisation ou diffusion non autorisee est
interdite. Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute
responsabilite au titre de ce message s'il a ete altere, modifie
ou falsifie.
******************************************************************


Current Thread