Re: SV: [xsl] questions about preceding::processing-instruction

Subject: Re: SV: [xsl] questions about preceding::processing-instruction
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Apr 2017 14:39:15 -0000
Ah yes, then the processor can do some optimization and stop looking for 'anchor' processing instructions right after the first anchor PI has been found on the preceding axis.

On 10.04.2017 16:35, Erik Zander erik.zander@xxxxxxxxxxxxxxxxxxxx wrote:
Thanks Gerrit,



You pointed me in the right direction so I could avoid the timeout :)



The solution was close at hand

<xsl:variable name="currentPage" select="substring-before(substring-after(./preceding::processing-instruction('anchor')[1], 'Page.'), '&quot;')"/>



Just using the fact that preceding is in reverse order :)



Regards

Erik

Current Thread