We have seen in a previous post how to use an XmlDataSource and a GridView to display a formatted view of an XML document. We have seen also how we could use XSL to help in the formatting.
As you will go on and improve your formatting, you will probably want to add a common XSL file to include in several other XSL using either an
What's happening ? In fact all included / imported resources are considered as external resources, whatever their storage location. And after investigation in the code of the XmlDataSource, you can see it has not be written to be able to resolve external resources.
It's so impossible to use an XmlDataSource with an XSL using imported or included resources.
So how can we do ? Well... Just forget the XmlDataSource in that case. So how to achieve the same things in code ? Check it here ! [Plus]