This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Dynamic modes: A generic solution


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]