xsl-list
[Top] [All Lists]

Re: [xsl] Modes - Necessary Construct or Syntactic Sugar

2013-03-20 04:01:23
<xsl:template name="title">
  <xsl:param name="mode" select=" 'default' " as="xs:string" />
  <xsl:choose test="$mode eq 'index'>
    . . .
  </xsl:choose>

: )  Liam will have meant xsl:when test (wrapped in xsl:choose)

  <xsl:otherwise>
    <xsl:call-template name="process-contents">
      <xsl:with-param name="input" select="node()" />

and that could be an apply-templates with a tunnelled param.



-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>