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


Manny,

Notwithstanding any contrary claims you may have been subjected to, 
according to your open tag, <xsl:stylesheet 
xmlns:xsl="http://www.w3.org/TR/WD-xsl";>, you are not using XSL. Thus you 
cannot expect your processor to recognize or respect XSL syntax. Check out 
http://www.netcrucible.com/xslt/msxml-faq.htm.

Cheers,
Wendell

At 04:16 PM 8/27/01, you wrote:
>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>


======================================================================
Wendell Piez                            mailto:wapiez@mulberrytech.com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
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]