[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SV: questions about preceding::processing-instruct

Subject: Re: SV: 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
Re: SV:  questions about preceding::processing-instruct
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.