How to debug xslt in umbraco

I want to debug the xslt used in the umbraco (4.0) user element. Xslt uses the static .net methods from the assembly, such as MyAssembly. xslExtensions.configwas configured with the following entry<ext assembly="/bin/MyAssembly" type="MyAssembly.Utility" alias="MyAssembly.Utility" />

This link is used in the xslt file, for example

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:MyAssembly.Utility="urn:MyAssembly.Utility"....
-------------------------------------------------->

--------------------------------------------------
<xsl:variable name="Id" select="MyAssembly.Utility:GetQueryStringValue('tlid')"></xsl:variable>

The assembly is copied to the application bin folder

The xslt file is quite large and makes extensive use of .net methods. I'm just wondering how I can debug XSLT by adding breakpoints on different lines. If I run the application just like any .net application and set breakpoints, then these breakpoints will not hit the hit. If I use XSLT debugging options from the Visual studio menu, i.e. Start XSLT Debugging, then debugging starts, but I get an error in this line<xsl:variable name="Id" select="MyAssembly.Utility:GetQueryStringValue('tlid')"></xsl:variable>

: " script , " urn: MyAssembly.Utility ".

, xslt, MS Visual Studio https://msdn.microsoft.com/en-us/library/ms255602.aspx .net?

+4
1

XSLT, , , , , , Visual Studio, ? , .

0

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


All Articles