[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[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


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


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


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


Current Thread