Try making the returnDate function Shared and/or possible change the
parameter and return type to Object incase thats causing a problem, you
can then debug to find out what type it is passing you.
-----------------------------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email:
rpuddephatt@...
Web:
http://www.latentzero.com-----Original Message-----
From:
saxon-help-bounces@...
[mailto:
saxon-help-bounces@...] On Behalf Of Vallone,
Philip Mr CTR USA AMC
Sent: 11 July 2008 13:35
To: Mailing list for the SAXON XSLT and XQuery processor
Subject: [saxon] .Net Extention
Hi,
I am trying to build a .NET extention using Saxon 9.006. It's a simple
.dll file to return the date.
I receive the following error:
Cannot find a matching 1-argument function named
{clitype:Namespace.ClassName?ACM=testFunction}returnDate()
I could not find any good examples to help me trouble shoot my problem.
My compliled .dll file is in the same folder as the saxon9.dll.
Here is my XSLT:
<xsl:stylesheet version="1.0"
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:ACM="clitype:Namespace.ClassName?ACM=testFunction">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
</head>
<body>
<xsl:for-each select="/root">
<h1>
<xsl:value-of
select="ACM:returnDate(member)"/>
</h1>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Here is my class:
Namespace ACM
Public Class testFunction
Public Function returnDate(ByVal xslDate As String) As String
Return xslDate
End Function
End Class
End Namespace
Here is my input:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<member>2008-01-01</member>
<member>2007-01-01</member>
</root>
Thanks,
Phil
------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at
http://www.sourceforge.net/community/cca08_______________________________________________
saxon-help mailing list archived at
http://saxon.markmail.org/saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit
http://www.mci.com-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at
http://www.sourceforge.net/community/cca08_______________________________________________
saxon-help mailing list archived at
http://saxon.markmail.org/saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help