Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging xslt file in visual studio 2010

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?

like image 948
user1111955 Avatar asked Jan 18 '12 15:01

user1111955


2 Answers

make sure your xslt file is in active then go to view > properties window then you can change the input file!

like image 82
Treemonkey Avatar answered Nov 10 '22 10:11

Treemonkey


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.

like image 29
Dimitre Novatchev Avatar answered Nov 10 '22 10:11

Dimitre Novatchev