xsl-list
[Top] [All Lists]

Re: param weirdness

2005-03-29 11:12:31
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[(_at_)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[(_at_)class=$category]'>
instead.

J.Pietschmann

--~------------------------------------------------------------------
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>