This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problem using param passed


jamadagni@123india.com wrote:
> 
> <xsl:apply-templates select="Article/ArticleTitle" mode="fieldInNewLine">
>        <xsl:with-param name="fieldName">Article Title:</xsl:with-param>
>        <xsl:with-param name="whichNode">Author</xsl:with-param>
> </xsl:apply-templates>

This form passes a string.

I find for simple strings and Xpath expressions (what you intend to
do with your "Author" selection), use the select attribute.

<xsl:apply-templates select="Article/ArticleTitle" mode="fieldInNewLine">
       <xsl:with-param name="fieldName" select="'Article Title:'" />
       <xsl:with-param name="whichNode" select="Author" />
</xsl:apply-templates>

Hope this helps.

-- 
Warren Hedley


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]