Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Variables /parameters cannot be used in patterns [Thread Next] Re: Variables /parameters cannot be used in patternsTo: NULL Date: 8/2/2004 6:44:00 PM Cant you add an apply-templates as starting point? <xsl:param name='v' select='1'/> <xsl:template match='/'> <xsl:apply-templates select="a/b/c[$v]"/> </xsl:template> <xsl:template match='c'> ... "Erming Pei" <erming.pei@c...> wrote in message news:eq6oULHeEHA.2352@T...... > 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? > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
