Subject: [xsl] problems with params and element selection From: Jan Krattiger <Jan.Krattiger@xxxxxxxx> Date: Thu, 4 Apr 2002 13:13:10 +0200 |
Hi all i allways get the following error, when i try to use a param (which i get trough an asp file with ...Processor.addParameter "page", page...) to apply a specified template (like: <xsl:apply-templates select="document/page[@name=$pp]"/> ). it's not a problem to use <xsl:value-of select="$page" />! it shows the right value of the param. "page" (so the asp is doing right). but i think it should also work with the select statement, shouldn't ?! thx for any help! : Description: Object required Source: Microsoft VBScript runtime error424 Detailed xsl code: ************************************************** <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="page" /> <xsl:template match="/"> <html> <head> </head> <body> <table> <tr> <xsl:for-each select="document/page"> <td><a><xsl:attribute name="href">showme.asp?page=<xsl:value-of select="@name" /></xsl:attribute><xsl:value-of select="@name" /></a></td> </xsl:for-each> </tr> </table> <xsl:apply-templates select="document/page[@name=$page]"/> </body> </html> </xsl:template> <xsl:template match="document/page[@name=$page]"> <h1><xsl:value-of select="title/@name" /></h1> </xsl:template> </xsl:stylesheet> greetz Jan Software Developer Unit.Net AG Thurgauerstrasse 54 CH - 8050 Zurich Email: jan.krattiger@xxxxxxxx Web: http://unit.net **************************************************************************** The content of this e-mail is for the confidential and exclusive use of the intended recipient. If you are not the intended recipient, you are hereby notified that any use, distribution, or reproduction of the contents of this e-mail is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify us immediately by electronic mail at the above address (or if known by telephone or by fax), delete the e-mail and destroy any copies of it. E-mail communications are not secure and therefore we do not accept any responsibility for the confidentiality or altered contents of this message. Please be aware that our company cannot accept any orders or other legally binding correspondence with a participant as part of an e-mail. The views expressed above are not necessarily those held by our company and not binding for our company. **************************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Re: Increment/decreme, Petr Cimprich | Thread | Re: [xsl] problems with params and , Joerg Heinicke |
[xsl] Re: Re: Increment/decrement a, Dimitre Novatchev | Date | RE: [xsl] Re: Re: Increment/decreme, Bryan Rasmussen |
Month |