Debug xslt file in visual studio 2010

I am debugging an xslt file in vs 2010, and at first I was asked to reference the original xml file. However, now I want to use a different source file. How can I get xslt to point to a different xml source file?

+6
source share
2 answers

make sure your xslt file is active, then go to browse> properties, then you can change the input file!

+15
source

You can specify the source XML file for conversion in the properties window for the XSLT file. The input property must contain the path to the XML file being processed. Enter the path to the new XML file here.

An XSLT transformation can process more than one XML document at a time .

This is achieved by using the document() function or by passing an XML document as a parameter for conversion .

You might need to enable the document() function using the XsltSettings.EnableDocumentFunction property.

Read here how to pass parameters to an XSLT transformation.

+1
source

Source: https://habr.com/ru/post/906316/


All Articles