Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: passing in an element as a parameter to a stylesheet [Thread Next] Re: passing in an element as a parameter to a stylesheetTo: NULL Date: 8/2/2007 6:55:00 PM Richard Tobin wrote: > <xsl:template match="/[count(.|$input-root) = 1]"> > you could so that in XSLT 2.0 but not on 1.0 (which the OP is using) which doesn't allow variables in match patterns. the usual technique here is just not to apply templates to / on the parameter but rather to its top level element, so don't do <xsl:apply-templates select="$foo" /> do <xsl:apply-templates select="$foo/*" /> David -- http://dpcarlisle.blogspot.com | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
