How to call a dot net asssembly / namespace in XSL

2019-07-18 07:03发布

问题:

I am writing dot net code within my XSLT. It gives me below error when I call any namespace OR write "using" directive within XSLT.

Error- "Could not recognize 'com.myassembly' "

Is it possible to use any assembly within xslt?

回答1:

It is possible, and you need to use extension objects - you will have to pass these in to the xslt processor before you can use them in the xsl file.

See the examples here.



回答2:

Have you looked at examples like the following:

  • Implementing Paging and XSLT Extensions Using XSLT in .NET - Part 1
  • Implementing Paging and XSLT Extensions Using XSLT in .NET - Part 2
  • Extending XSLT with JScript, C#, and Visual Basic .NET


回答3:

Read about:

<msxsl:using>

<msxsl:assembly>



标签: .net xslt