Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: dynamic sort >Thread Next - Re: dynamic sort Re: dynamic sortTo: NULL Date: 9/7/2004 9:18:00 PM It is interesting to pass the name of a xsl:key as a parameter ... :o) Then it might be possible to use a single xsl:sort instruction in quite different (structurally) sorts. Dimitre Novatchev. "Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message news:Oq7jA%23KlEHA.3536@T...... > Michael Frost wrote: > >> Oleg, I was thinking to set the variable expression as an external >> parameter, which is set before transform (compile) time. I was looking >> for at way to pass the parameter into the xsl:sort. > > You can pass a value as a parameter, but you can't pass XPath expression > as a parameter - it's just like passing part of C# source as a command > line argument. Instead consider Joe's approach or write extension function > to evaluate XPath dynamically or generate XSLT on the fly. > > -- > Oleg Tkachenko [XML MVP] > http://blog.tkachenko.com | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
