# Things I wish I'd known before this: Part 1 (of several million)

<datetime class="hidden">2003-10-07T00:00</datetime>
<!-- category -- mostlylucidcouk, Imported -->

## 
[Things I wish I'd known before this: Part 1 (of several million)](/blog/578) 

posted on [6:21 PM](/blog/578)

I did not know this was possible or so easy! Just found out you can extend XSLT (so you can use bits of code in there) from C# have a look [here](http://www.microsoft.com/indonesia/msdn/xml05192003.asp) and [here](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXslXsltArgumentListClassAddExtensionObjectTopic.asp) for the lowdown...
This would have saved me so much time...why haven't I read about this before? Maybe I did and just forgot...what else have I forgotten!

UPDATE: You can even do it from [VBScript](http://www.codeproject.com/asp/aspobjects_in_xsl.asp)! I still can't believe I didn't know this!