xsl-list
[Top] [All Lists]

Re: [xsl] How to cope with the complexity of an XSLT program with thousands of template rules?

2022-06-02 11:07:20
On Thu, Jun 02, 2022 at 12:40:47PM -0000, Chris Papademetrious 
christopher(_dot_)papademetrious(_at_)synopsys(_dot_)com scripsit:
That solved the problem and avoided problematic template interactions, but it 
made me feel defeated because I resorted to a linear way of solving the 
problem.

Staged transformations, keeping the stages simple, small, and thematic,
is the Right Way, at least for 2.

For 3, the right way is the same simple-small-thematic stages, but done
with transform() calls so you have independent stylesheets for each step
and stop having to worry about mode leakage.  It is way too easy to
re-use a mode name over the course of a long project, and if it's all
one stylesheet this can result in an absolutely satanic debugging
experience.


-- 
Graydon Saunders  | graydonish(_at_)gmail(_dot_)com
Þæs oferéode, ðisses swá mæg.
-- Deor  ("That passed, so may this.")
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>