I am debugging an xslt file in vs 2010, and at first I was prompted to link to a xml source file. However, now I want to use a different source file. How can I get the xslt to point to a different xml source file?
make sure your xslt file is in active then go to view > properties window then you can change the input file!
You can specify the source XML file for the transformation in the properties window for the XSLT file. The input
property should contain the path to the XML file to be processed. Enter the path to the new XML file here.
An XSLT transformation can process simultaneously more than one XML document.
This is achieved by using the document()
function, or by passing an XML document as a parameter to the transformation.
You may need to enable the document()
function using the XsltSettings.EnableDocumentFunction
property.
Read here how to pass parameters to an XSLT transformation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With