C# Embedded Xsl Resource Resolving
Posted: September 12, 2006 Filed under: .NET, Computers Leave a comment »I ran into a problem today developing a web app that uses XML/XSLT for the display. This particular widget is designed to run as a custom control and it compiles to a .dll, so I had to embed my XSL files. This wasn’t a problem until I tried to clean up the XSLs by dividing them into smaller pieces and using xsl:include from between them.
The problem turned out to have a quick solution that took about an hour. Write a Custom XmlResolver. Now the one on the Microsoft Website is pretty extensive if you want to learn all about it. But if you want to just drop a class file in your project you can use mine. It resolves everything relative to the namespace that you put it in, so be sure to change that to something appropriate, espeically if you have your default namespace set in Visual Studio.
Note this is quick and dirty and doesn’t do anything with credentials, which I figure is OK since you probably have permission to get to your embedded resources.
Click below to see the full code:
Read the rest of this entry »
Apache Sitgreaves National Forest
Posted: September 6, 2006 Filed under: Hiking Leave a comment »MB and I went hiking in Apache-Sitegreaves National Forest over Labor day weekend. It was an awesome trip. You can check out my picture dump for the weekend, or take a look at the annotated trip over at Trimble Outdoors.
Or click the “Read more” link below to view some highlights.