Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Variables and parameters cannot be used in patterns [Thread Next] Re: Variables and parameters cannot be used in patternsTo: NULL Date: 8/2/2004 12:37:00 PM Erming Pei wrote: > I want to pass a value to a pattern expression to select certain nodeset in > following xslt stylesheet: > > <xsl:template match="site[position()=$SitePosition]"> > ... > ... > </xsl:template> > > but it reports that "Variables and parameters cannot be used in patterns". > How to solve this dynamic problem? Either move the logic to <xsl:apply-templates> or have a <xsl:choose> within a template and analize position there. -- Oleg Tkachenko [XML MVP] http://blog.tkachenko.com | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
