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

RE: Complex recursion in XSLT 1.0

Subject: RE: Complex recursion in XSLT 1.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 18 Feb 2008 18:06:12 -0000
RE:  Complex recursion in XSLT 1.0
If you're going to resort to escaping to Java and using mutable objects that
way, then you can probably use a completely different algorithm. But that's
cheating... 

In any case, using XSLT 2.0 sequences to maintain a stack is really dead
easy. (In this case I don't think it even needs to be a stack, strictly
speaking - it can just be a queue of elements awaiting processing, and you
can probably take them off the queue in any order.)

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Mukul Gandhi [mailto:gandhi.mukul@xxxxxxxxx] 
> Sent: 18 February 2008 17:16
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Complex recursion in XSLT 1.0
> 
> On Feb 18, 2008 7:43 PM, Marroc <marrocdanderfluff@xxxxxxxxxxx> wrote:
> > Perhaps if I build a stack as a node-set I might be able to 
> crack this one!
> 
> To implement Stack in the XSLT stylesheet, you might use a 
> Java extension for using Stack in an external Java object. 
> This should be easily achievable.
> 
> 
> --
> Regards,
> Mukul Gandhi

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-2011 All Rights Reserved.