Re: [xsl] param weirdness

Subject: Re: [xsl] param weirdness
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Tue, 29 Mar 2005 20:12:31 +0200
Jelks Cabaniss wrote:
This *should be* obvious, but sometimes the obvious isn't always to this
observer.  :)

    <xsl:template name="detail">
      <xsl:param name="category" />
        <xsl:for-each select='/config/option[@class="$category"]'>
                                               ^^^^^^^^^^^^^^^^^^
This matches options whose class attribute is the string $category,
rather than the value of the parameter named category.
Use
         <xsl:for-each select='/config/option[@class=$category]'>
instead.

J.Pietschmann

Current Thread