Re: problem using param passed

Subject: Re: problem using param passed
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Sat, 01 Jul 2000 12:09:44 -0400
jamadagni@xxxxxxxxxxxx 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


Current Thread