Subject: [xsl] passing parameter to template From: "Fei Zheng" <Fei.Zheng@xxxxxxx> Date: Wed, 2 Jul 2003 13:21:16 -0400 |
Hi all, I am having a problem with passing a paramter to template. It works without using a second xml. Do you know how to code it working with a second xml? This is code which has no value pass into template. Anything I am doing wrong? Thanks! <xsl:for-each select="tech"> <xsl:variable name="current-tech" select="@descr"/> <xsl:apply-templates select="document('report.xml')" mode="report"> <xsl:with-param name="current" select="$current-tech"/> </xsl:apply-templates> </xsl:for-each> <xsl:template match="item" mode="report"> <xsl:param name="current" /> <xsl:if test="($current = metadata/technology)"> <xsl:value-of select="content/company/." /><br/> </xsl:if> </xsl:template> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] question regd. xsl transl, xsl user | Thread | RE: [xsl] passing parameter to temp, Michael Kay |
Re: [xsl] xsl:sort in old MSXML, David Carlisle | Date | RE: [xsl] xsl:sort in old MSXML, Claudio Russo |
Month |