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: xsl:param may not be used here


>From: "Rene de Vries" <RdVries@PCL-HaGe.nl>
>To: <xsl-list@lists.mulberrytech.com>
>Subject: RE: [xsl] xsl:param may not be used here
>Date: Tue, 28 Aug 2001 10:01:08 +0200
>
>I don't understand what you're trying to do.
>Your filling the param with specific node(s) (//SECTION[@Id='Terms']) and
>using that in a select. You can only use XPATH-expressions in a
>xsl:apply-templates-select, not node(s).
>Maybe you're trying this (giving a select-param):
><xsl:param name="filter" select="'Terms'" />
>....
>  <xsl:apply-templates select="//SECTION[@Id=$filter]" />
>
>or this (passing the specific node(s)):
><xsl:param name="filter" select="//SECTION[@Id='Terms']" />
>....
>  <xsl:apply-templates select=".....">
>	<xsl:with-param name="filter" select="$filter"/>
>  </xsl:apply-templates>
>
>Greetings René
>   {@   @}
>      ^
>     \_/
>
>"You don't need eyes to see, you need vision!"
>-----Oorspronkelijk bericht-----
>Van: owner-xsl-list@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]
>Verzonden: dinsdag 28 augustus 2001 9:31
>Aan: xsl-list
>Onderwerp: [xsl] xsl:param may not be used here
>
>
>From: "Manny Hellstern" <mhellste@hotmail.com>
>To: XSL-List@lists.mulberrytech.com
>Subject: xsl:param may not be used here
>Date: Mon, 27 Aug 2001 19:36:32
>Mime-Version: 1.0
>Content-Type: text/plain; format=flowed
>Message-ID: <F14Yj7XGeFaatao8KK800006ac7@hotmail.com>
>X-OriginalArrivalTime: 27 Aug 2001 19:36:32.0808 (UTC)
>FILETIME=[9385EA80:01C12F2F]
>
>Anybody!
>
>Can anyone tell me why I get the message shown in the email subject line?
>In the XSL snippet below, my goal is to pass in the value for the the
>parameter "filter" based on selections made from an HTML page and have the
>XSL file select and transform a sub-set of XML nodes to fill in the
>"innerHTML" property of a DIV tag. The XSL file works without the
><xsl:param> tag:
>
><xsl:apply-templates select="//SECTION[@Id='Terms']" />
>
>but as soon as I try to introduce <xsl:param ... it dies.
>
>I haven't figured out how I'm going to set the parameter from the HTML page
>just yet since I can't get the parameter to work when it is hard coded.  Any
>insight into how to do that would also be welcome.
>
>XSL file:
>
><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
><xsl:param name="filter" select="//SECTION[@Id='Terms']" />
><xsl:template match="/">
><HTML>
><HEAD>
></HEAD>
><BODY>
>  <xsl:apply-templates select="$filter" />
></BODY>
></HTML>
></xsl:template>
>  .
>  I have templates in this section
>  .
></xsl:stylesheet>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


--
======================================================================
B. Tommie Usdin                        mailto:btusdin@mulberrytech.com
Mulberry Technologies, Inc.                http://www.mulberrytech.com  
17 West Jefferson Street                           Phone: 301/315-9631
Suite 207                                    Direct Line: 301/315-9634
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML              
======================================================================

 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]