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

Re: Processing approach

Subject: Re: Processing approach
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Jul 2017 00:15:21 -0000
Re:  Processing approach
Ibm not sure whether I have completely understood the scenario, but did you consider using tunnel parameters?

https://www.w3.org/TR/xslt-30/#tunnel-params
https://www.w3.org/TR/xslt20/#tunnel-params

Calculate the variable once, in the context of a node that is ancestor-or-self to all affected nodes, and pass this variable as a tunnel parameter to apply-templates, to next-match, or to call-template.

Gerrit

On 7/18/2017 1:39 AM, Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx wrote:
I am processing an xml doc where a template adds some elements at
one point in the tree. While doing this, it generates a variable that I also
use at another location in the tree. Rather than regenerate the variable
and introduce a chance for breakage in the future, is there a more efficient
approach for processing the alternate node without selecting that node
and calling a template on it which needs to copy it? I need to call this same
template several times?

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.