xsl-list
[Top] [All Lists]

[xsl] xsl:with-param focus

2015-10-11 14:15:54
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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] xsl:with-param focus, Martynas Jusevičius martynas@graphity.org <=