This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: problem using param passed
- To: xsl-list at mulberrytech dot com
- Subject: Re: problem using param passed
- From: Warren Hedley <w dot hedley at auckland dot ac dot nz>
- Date: Sat, 01 Jul 2000 12:09:44 -0400
- CC: jamadagni at 123india dot com
- Organization: Department of Engineering Science, The University of Auckland
- References: <20000701092509.1899.cpmta@c008.sfo.cp.net>
- Reply-To: xsl-list at mulberrytech dot com
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