Altova Mailing List Archives

Re: [xsl] Re: Intermediate XML file creation, was:

From: "Mike Haarman" <mhaarman@------------------>
Date: 4/18/2003 10:51:00 AM
----- Original Message -----
From: "Andrew Kirkpatrick" <ncam_tech@xxxxxxxx>

> Is it reasonable or advantageous to create an intermediate XML file that
> incorporates new elements/attributes for the calculations so that each of
> the ultimate transformations don't need to do these calculations, or is this
> considered bad form?

XSL is a data-driven process (document order, etc.).  It is a very common
pattern to massage data for a subsequent set of templates, the prevalence of the
node-set() extension attests to this.  The good news is that chaining a pair of
Sax tranformations allows one to use this technique without the necessity of
writing a file.  I think a two-pass transformation can be at once more
maintainable, more flexible and more efficient for a class of problems.



 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.