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

Re: nested templates?

Subject: Re: nested templates?
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Wed, 16 May 2001 17:15:59 -0400
Re:  nested templates?
[Chris Bayes]

> Thomas,
> I think that is a completely bad example. That is completely flat and
> doesn't give any insight into anything. You might as well have just used
> goto for all the stucture there is in it.
>

[Tom]
Depends on what you want to accomplish, Chris. I first wrote one like this
when I was working with someone else who was creating spaghetti xslt code,
and we both had to contribute to the pages.  It made all the difference.  On
the other hand, all my stylesheets aren't like this by any means.

I'm responding to the literal words in the original posting, which talked
about "pages", and nesting templates so you could do the whole page at once.
Of course, we don't know how general he was thinking his input would be.  He
also mentioned 'production".  So I illustrated a way in which you could
create a series of production pages from a clean, simple template that would
be easy to customize, while avoiding the trap of getting lost in too many
'little bits".  Different people could work on the different parts, and even
run the corresponding templates on their work to test it.  That's a decent
approach for "production".

As for flatness, we don't know what would have gone into the component
templates.  They could have been recursive as anything, who knows!

One of the main points I wanted to illustrate was that you can use xslt -
for "production-like purposes -to do without 1) betting killed by little
dismembered bits, and 2) not get lost in a large, convoluted block.

A model for everything?  Not at all!

Regards,

Tom P


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.