在visual studio 2010中调试xslt文件

时间:2021-08-28 06:18:17

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?

我正在vs2010中调试一个xslt文件,最初提示我链接到一个xml源文件。但是,现在我想使用一个不同的源文件。如何让xslt指向另一个xml源文件?

2 个解决方案

#1


15  

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

确保您的xslt文件处于活动状态,然后转到查看>属性窗口,然后您可以更改输入文件!

#2


1  

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.

您可以在XSLT文件的属性窗口中为转换指定源XML文件。输入属性应该包含要处理的XML文件的路径。在这里输入新XML文件的路径。

An XSLT transformation can process simultaneously more than one XML document.

XSLT转换可以同时处理多个XML文档。

This is achieved by using the document() function, or by passing an XML document as a parameter to the transformation.

这可以通过使用document()函数或将XML文档作为参数传递给转换来实现。

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

您可能需要使用XsltSettings来启用document()函数。EnableDocumentFunction财产。

Read here how to pass parameters to an XSLT transformation.

阅读本文,了解如何将参数传递给XSLT转换。

#1


15  

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

确保您的xslt文件处于活动状态,然后转到查看>属性窗口,然后您可以更改输入文件!

#2


1  

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.

您可以在XSLT文件的属性窗口中为转换指定源XML文件。输入属性应该包含要处理的XML文件的路径。在这里输入新XML文件的路径。

An XSLT transformation can process simultaneously more than one XML document.

XSLT转换可以同时处理多个XML文档。

This is achieved by using the document() function, or by passing an XML document as a parameter to the transformation.

这可以通过使用document()函数或将XML文档作为参数传递给转换来实现。

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

您可能需要使用XsltSettings来启用document()函数。EnableDocumentFunction财产。

Read here how to pass parameters to an XSLT transformation.

阅读本文,了解如何将参数传递给XSLT转换。