Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: dynamic sort

From: "Dimitre Novatchev" <x@---.--->
To: 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 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent