Subject: Re: [xsl] having a template remember not to call itself again From: "Joel Kalvesmaki director@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 6 Mar 2023 04:33:57 -0000 |
Hi everyone,
When a template applies its processing first then calls other templates last, I will call it "tail-call" template chaining (although I don't know the correct term).
For "tail-call" chaining to work, PROCESSING1_HERE must transform the content so that CONDITION1_HERE is not met again (or at least not met in a way that loops infinitely).
But, what if PROCESSING1_HERE is very complex (nested moded templates, recursion, etc.) and sometimes CONDITION1_HERE will match after this template was previously applied, and there is no practical way to embed the complexity of predetermining PROCESSING1_HERE's failure to remove the condition into CONDITION1_HERE's match expression?
-- Joel Kalvesmaki Director, Text Alignment Network http://textalign.net
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] having a template remembe, Dimitre Novatchev dn | Thread | Re: [xsl] having a template remembe, Chris Papademetrious |
Re: [xsl] Selecting elements from s, Graydon graydon@xxxx | Date | Re: [xsl] Selecting elements from s, Liam R. E. Quin liam |
Month |