xsl-list
[Top] [All Lists]

RE: [xsl] matching question

2008-08-06 04:30:53

If my input is like

<a>
   <b/>
</a>

the above template matches only <a> although <b> is also a 
node that is "children of some parent". What's the reason for that?


It's exactly what I said: if the template that matches <a> doesn't call
xsl:apply-templates selecting the children of <a>, then the children of <a>
will not be processed - the system will never look for a matching template
rule.

Michael Kay
http://www.saxonica.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>