[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XPath 2.0 expression that detects a cycle of refe
On 29.03.2016 10:46, Michael MC<ller-Hillebrand mmh@xxxxxxxxx wrote:
I think you need to write a recursive function to detect cycles in a graph, and XPath 2.0 does not have sufficient power for this. It can of course be done in XSLT or XQuery. It can possibly be done in XPath 3.0, though because XPath 3.0 functions are anonymous, recursion is tricky. Well, how would that kind of trick look like? Dimitre has an article on using two anonymous function together with "let", to implement the recursion: https://dnovatchev.wordpress.com/2012/10/15/recursion-with-anonymous-inline-functions-in-xpath-3-0-2/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|