This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Dynamic modes: A generic solution
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Re: Dynamic modes: A generic solution
- From: gutman at novosoft-us dot com
- Date: Mon, 6 Aug 2001 18:19:31 +0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello again.
After rereading my previous message, I have realized that
the code I obtained,
<y:nameX/>
<xsl:template match="y:nameX">
<xsl:param name="context"/>
<xsl:for-each select="$context">
nameX-specific code
</xsl:for-each>
</xsl:template>
is not much simpler than a plain code like this:
<xsl:template match="x:nameX">
<xsl:for-each select="new-context()">
nameX-specific code
</xsl:for-each>
</xsl:template>
Quite the contrary, the latter seems simpler.
So, I guess, my "generic" approach is not intended
for the problem under consideration.
Excuse my stupidity.
--
Alexander E. Gutman
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list