Subject: Re: [xsl] Parameters in XPath From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 7 Jan 2003 10:28:44 GMT |
<xsl:param name="Filter" select="@rebate>0"/> so Filter is the boolean value true or false depending on the value of the rebate attribute at this point. <xsl:apply-templates select="/Cat[@CatId=$Cat]/Prod[$Filter]"/> If Filter is true it will have no effect but if Filter is the boolean value false then this selct will not slect anything. either way Filter is a constant value not depending on the path so this is the same as <xsl:if test="$Filter"> <xsl:apply-templates select="/Cat[@CatId=$Cat]/Prod"/> </xsl:if> David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Parameters in XPath, Joerg Heinicke | Thread | Re: [xsl] Parameters in XPath, Juan Carlos Gonzalez |
Re: [xsl] disable-output-escaping=", David Carlisle | Date | RE: [xsl] FW: match="/", Américo Albuquerque |
Month |