Adding Custom Functions to XPath
Adding Custom Functions to XPath
Here's a great article on adding custom functions for use in XPath expressions via the .NET XSLT framework classes. I was aware of passing custom obejects via extension objects, but I had no clue this functionality existed. The author does a good job demonstrating the extensibility of the XsltContext class for all sorts of purposes. Great stuff!
Update: Thanks to Jason Diamond for pointing out that I forgot to actually link to the article itself. Duh! :)