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

Re: Processing approach

Subject: Re: Processing approach
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Jul 2017 08:55:44 -0000
Re:  Processing approach
There's a lot of temporal language in this description ("while", "then", "same
time", "ends up", "as I process").

That's usually a sign that you are thinking procedurally. Try to describe the
output as a function of the input, and forget about what happens when.

Michael Kay
Saxonica


> I am stuck with xslt 1 with this task. I suppose the simplest way to
describe it
> is the variables created while in one node create foreign key refs against
the
> obvious matching values I generate while in another path.
>
> Its simpler to use the various logic to generate the values once, then apply
them
> at the same time in both locations. Often they are generated while in a for
loop.
> However this generates a template call for the large element I am not
currently
> processing that ends up copying that node "n" times along with my new
appended
> element.
>
> In this case, all I really need to do is continually append the secondary
element
> to the alternate location as I process and insert a node in the current
position.
>
> Thanks,
> jlc

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.