xsl-list
[Top] [All Lists]

RE: [xsl] default template ?

2010-09-27 10:51:52
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(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com] 
Envoyé : lundi 27 septembre 2010 17:45
À : xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Objet : Re: [xsl] default template ?

On 27 September 2010 16:27, Fabien Tillier 
<f(_dot_)tillier(_at_)cerep(_dot_)fr> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>