Problems with refelxive extension functions (clitype)
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 25
- Joined: Sun Apr 22, 2018 10:17 pm
Problems with refelxive extension functions (clitype)
Hello, I am having a problem working with Saxon 9.2 PE and reflexive extension functions, and I see that there is a lot of people with the same problem, so based on the System.Math example I have done a very simple project with only a class Employee inside a library called LibEmployees and the Employee calse only contains an static method GetName with yields a string value
I expose the code
the class --> LibEmployees. Employee
public class Employee {
public static string GetName()
{
return "Frank";
}
}
and theXLS file
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
xmlns:faux="clitype:libEmployees.Employee?from=file:///E:/WpfPruebasBDE/libEmpleados\bin/Debug/libEmployees.dll"
xmlns:xs="urn:schemas-microsoft-com:datatypes">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
Name: <xsl:value-of select="faux:Employee.GetName()"/>
</xsl:template>
</xsl:stylesheet>
And in spite of its simplicity I always receive the error message of
Cannot find a matching 1-argument function named {clitype:libEmployyes.Employee?from=file:///E:/WpfPruebasBDE/libEmployees\bin\Debug\libEmployees.dll}Employee.GetName().
Please help me to see which is my fail, I'm not abe of find it.
Regards
I expose the code
the class --> LibEmployees. Employee
public class Employee {
public static string GetName()
{
return "Frank";
}
}
and theXLS file
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
xmlns:faux="clitype:libEmployees.Employee?from=file:///E:/WpfPruebasBDE/libEmpleados\bin/Debug/libEmployees.dll"
xmlns:xs="urn:schemas-microsoft-com:datatypes">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
Name: <xsl:value-of select="faux:Employee.GetName()"/>
</xsl:template>
</xsl:stylesheet>
And in spite of its simplicity I always receive the error message of
Cannot find a matching 1-argument function named {clitype:libEmployyes.Employee?from=file:///E:/WpfPruebasBDE/libEmployees\bin\Debug\libEmployees.dll}Employee.GetName().
Please help me to see which is my fail, I'm not abe of find it.
Regards
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Problems with refelxive extension functions (clitype)
Hi,
Are you running this in Oxygen, or in the command line?
In the command line, add the -TJ argument to turn on tracing of the binding of calls.
https://www.saxonica.com/html/documenta ... xtensions/
Regards,
Adrian
Are you running this in Oxygen, or in the command line?
In the command line, add the -TJ argument to turn on tracing of the binding of calls.
https://www.saxonica.com/html/documenta ... xtensions/
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 25
- Joined: Sun Apr 22, 2018 10:17 pm
Re: Problems with refelxive extension functions (clitype)
I've just solve it using ?asm= instead of ?file= and registering the libEmp in the GAC, and it works well in Visual Studio 2015 but not in Oxygen, I think that this kind of extensive functions are not compatible with Oxygen
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service