[xsl] xsl:with-param focus

Subject: [xsl] xsl:with-param focus
From: "Martynas Jusevičius martynas@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 11 Oct 2015 19:15:48 -0000
Hey,

I have a question that has been bothering me -- are #1 and #2 below
equivalent? If not, why not? I'm guessing it has to do with
xsl:with-param focus. I'm only getting desired results with approach
#1.

#1

  <xsl:for-each select="$modes">
    <xsl:variable name="selected" select="(@rdf:about, @rdf:nodeID) =
'&gc;MapMode'"/>
    <xsl:apply-templates select="." mode="gc:OptionMode">
      <xsl:with-param name="selected" select="$selected"/>
    </xsl:apply-templates>
  </xsl:for-each>

#2

  <xsl:apply-templates select="$modes" mode="gc:OptionMode">
    <xsl:with-param name="selected" select="(@rdf:about, @rdf:nodeID)
= '&gc;MapMode'"/>
  </xsl:apply-templates>

Martynas

Current Thread