RE: [xsl] default template ?

Subject: RE: [xsl] default template ?
From: "Fabien Tillier" <f.tillier@xxxxxxxx>
Date: Mon, 27 Sep 2010 17:53:12 +0200
Thanks Andrew !
So, it will match the remaining nodes only ? (not the ones already "treated"
by the specific templates ?)
I assume there is a priority, specific templates being done before generic
ones, right ?

Regards,
Fabien



-----Message d'origine-----
De : Andrew Welch [mailto:andrew.j.welch@xxxxxxxxx]
Envoyi : lundi 27 septembre 2010 17:45
@ : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Objet : Re: [xsl] default template ?

On 27 September 2010 16:27, Fabien Tillier <f.tillier@xxxxxxxx> wrote:
> Hi List.
> I was wondering how an XSL Stylesheet can be done to treat all nodes in
> an XML file if a template doesn't fit.
> I mean, if an xml is like
> <Row>
>        <A>A value</A>
>        <B>B value</B>
>        <C>C value</C>
> </Row>
>
> If I get one template for treating <A> nodes (match = "A"), and one for
> <B> nodes, I would like to have some kind of fall back template for the
> C nodes which don't have a specific one.
> Is this possible ?

Yes - match="*"



--
Andrew Welch
http://andrewjwelch.com

Current Thread