Why don't all XSLT templates get executed at once?

Posted by Matt W on Stack Overflow See other posts from Stack Overflow or by Matt W
Published on 2009-10-25T17:39:22Z Indexed on 2010/05/21 23:40 UTC
Read the original article Hit count: 286

Filed under:
|
|

Refer to: http://stackoverflow.com/questions/1613454/retrieving-one-element-and-filter-by-another

In the above linked posting, I don't understand why the two template blocks don't get executed upon in the incoming XML at the same time. As far I can can see, the XSL risks the second template executing for every Document element whether it is called with apply-templates or not.

Could someone explain this to my stifled brain, please?

Thanks,

Matt.

© Stack Overflow or respective owner

Related posts about xslt

Related posts about template