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

Re: grouping + global variable (?) (was re: regexs,

Subject: Re: grouping + global variable (?) (was re: regexs,
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Sat, 14 Aug 2004 11:30:25 -0400
Re:  grouping + global variable (?) (was re: regexs
At 07:07 PM 8/13/2004, you wrote:

On Aug 13, 2004, at 6:46 PM, Wendell Piez wrote:

As for modes, this looks like it'll work, but you might want to consider making phase-1 and phase-2 apply all the way down their own template hierarchies, to prevent them from stepping on each other inadvertently.

So you mean to explicitly declare the mode on all the descendent templates; e.g.:


<xsl:template ... mode="phase-2">
    <xsl:apply-templates ... mode="phase-2"/>
</xsl:template>

... and so forth?

Quite. I am not saying this is always necessary or a good idea (sometimes it's a headache), but you should consider it. Because you have a single template in phase-1 it is less of an issue here.


It's also a good time to think about names. Maybe change "phase-1" to "enhance-year" or some such and make phase-2 the default mode -- depending on where you think this stylesheet will go (if anywhere). It's really a maintenance question, I think.

Cheers,
Wendell


___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_
"Thus I make my own use of the telegraph, without consulting
the directors, like the sparrows, which I perceive use it
extensively for a perch." -- Thoreau


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.