Subject: RE: [xsl] using parameters in a select From: James Eberhardt <JEberhardt@xxxxxxxxxx> Date: Tue, 24 Apr 2001 15:19:58 -0400 |
>>>> Can I use parameters in the apply-templates select statement? > No. Check out the FAQ at http://www.dpawson.co.uk/xsl/nono.html#d44e8531 Actually, it's the reverse of what he is asking. The variable that he would need goes in the <xsl:apply-templates> part, not the <xsl:template> part, like the FAQ is indicating. The problem with his code is the XPath statement that he is using resolves to nothing. <xsl:apply-templates select="ServicePlan[$servicePlanNames]" /> What is supposed to equal $servicePlanNames ?? If you had a bit of XML like: <ServicePlan type="default value" /> Then your xsl would have to look like this: <xsl:apply-templates select="ServicePlan[type=$servicePlanNames]" /> Hope this helps. James XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] using parameters in a sel, Michael Kay | Thread | Re: [xsl] using parameters in a sel, lwong |
RE: [xsl] using parameters in a sel, Mitchell, Edmund | Date | Re: [xsl] using parameters in a sel, lwong |
Month |