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