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

Re: "Tunneling" a parameter in document order

Subject: Re: "Tunneling" a parameter in document order
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Fri, 13 Apr 2012 09:02:13 +0100
Re:  "Tunneling" a parameter in document order
Hi,

>> Post a small complete sample input covering the various possibilities,
>> along with the required output for that input.
>>
>
> Before going further: I do *not* want anyone to create an XSLT that
transforms the sample source to the desired result below! That would be time
well wasted. I'm merely interested in ideas on how to tackle such a kind (or
class?) of problem.
>
> Trying to describe the problem at a high level, that would essentially be:
Keeping a (virtual) global variable's value current while doing a depth-first
traversal of a document, where the variable's value is not scoped by either
the document's element hierarchy, nor the nesting of XSLT template calls.
>
> Hoping to have gotten them right :-), here are source and desired result:

As I asked for the sample I should probably just say: that example is
way too complicated for me, it would require investing a fair amount
of time just to understand the requirement.  Someone else might
though.

Any chance of a much simpler example that I could understand in 5 mins?



--
Andrew Welch
http://andrewjwelch.com

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.