[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How recursively iterate over entire document?
Chris,
What you are trying to accomplish in a single pass defies the processing model for XSLT 1.0. If you could map out the dependencies between the different settings explicitly, it might not be completely inconceivable under XSLT 2.0, but it's not a task I'd relish. I'd probably be inclined to start with the assumption that N passes over the data may be needed, where N is the number of assertions you are making. While evaluate() may be handy, I'd suggest you try thinking through how you'd do this without it -- writing a stylesheet to generate stylesheets. You could, in fact, generate a suite of stylesheets to be executed consecutively over your data in a (longish) pipeline (they'd all be variants of the identity transform, except amended with logic from your settings). This would have the virtue of clarifying the dependencies. Your process expects x to happen before y -- but the XSLT processing model doesn't support that specification explicitly (it's designed so processors can execute steps in parallel if they like). This is sort of like trying to repair your engine while your car is moving at 65mph on the highway. Cheers, Wendell At 06:04 PM 8/11/2005, you wrote: Hi List, It's kind of strange what I'm doing, so it's hard to explain. I'll try to keep it simple. In my document that I'm trasnforming, I have a sequence of elements that contain some xpath queries in them.... that will be dynamically evaluated using evaluate(). These can't be evaluated consecutively on the same document, because one will cause changes to the document that the next one has to see, etc. ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
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
|