Subject: Re: [xsl] having a template remember not to call itself again From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 5 Mar 2023 16:56:50 -0000 |
The XSLT 3 approach is the transform function, where you write individual stylesheets for each step and call them:
<xsl:variable name="pass1" as="document-node()"> <xsl:sequence select=" transform(map { 'stylesheet-location': 'pass1.xsl', 'source-node': /* } )?output" /> </xsl:variable>
<xsl:variable name="pass2" as="document-node()"> <xsl:sequence select=" transform(map { 'stylesheet-location': 'pass2.xsl', 'source-node': $pass1 } )?output" /> </xsl:variable>
And so on.
B fold-left(('pass1.xsl', 'pass2.xsl', 'pass3.xsl'), /, function($n, $x) { transform(map{'stylesheet-location': $x, 'source-node' : $n })?output })
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] having a template remembe, Graydon graydon@xxxx | Thread | Re: [xsl] having a template remembe, Graydon graydon@xxxx |
Re: [xsl] having a template remembe, Graydon graydon@xxxx | Date | Re: [xsl] having a template remembe, Graydon graydon@xxxx |
Month |