How do I link/embed XSLT file and access the resource?
Posted on 2009-04-07
I am creating a windows application to select an XML file and use an XSLT template to apply formatting to that XML file.
I can currently provide a static path to the file, but I'd like to create a resource for this XSLT file so that I don't have to include the file after I compile the application.
I can't figure out how to use XslCompiledTransform's Load method to access a .resx file "Template.xsl" to load that file.
For sake of simplicity, assume namespace = ns and resource path = ns.Resources.Template.xsl
Any help would be great.