xsl-list
[Top] [All Lists]

Re: [xsl] passing param using value-of

2012-02-16 16:38:34
Hi,

What if you try this:

<xsl:call-template name="myTemplate">
        <xsl:with-param name="arguments">
             <xsl:sequence select="preceding-sibling::*" />
        </xsl:with-param>
 </xsl:call-template>

Regards,
EB


2012/2/16 Mansour Al Akeel <mansour(_dot_)alakeel(_at_)gmail(_dot_)com>:
This works fine.

 <xsl:call-template name="myTemplate">
        <xsl:with-param name="arguments" select="preceding-sibling::*" >
        </xsl:with-param>
</xsl:call-template>

But this doesn't:

<xsl:call-template name="myTemplate">
        <xsl:with-param name="arguments">
             <xsl:value-of select="preceding-sibling::*" />
        </xsl:with-param>
 </xsl:call-template>

Why ? How do I use value-of to set the value of a parameter ?

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


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