You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by John Gentilin <ge...@eyecatching.com> on 2004/05/05 09:42:35 UTC
Help, Creating an extension element that takes a DTM as a parameter.
I am in the process of updating the SQL Extensions to add a
skipRec method to help with SQL Pagination but its killing me.
The problem is, the XConnection#pquery returns an SQLDocument
that is cast to its base class via its return type.
public DTM pquery( ExpressionContext exprContext, String queryString, String typeInfo)
I store the output of pquery in in a variable.
<xsl:variable name="cfrs" select="sql:pquery($Xcon1, $CFRQuery)"/>
Then I use that variable as a parameter to the skip method.
<xsl:value-of select="sql:skip($Xcon1, $cfrs, '4')" />
But I have yet to find the correct method signature that
will satisify the MethodResolver.
The Error message I get is
java.lang.NoSuchMethodException:
For extension function, could not find method
static org.apache.xalan.lib.sql.XConnection.skip(
[ExpressionContext, ]#UNKNOWN (org.apache.xalan.lib.sql.XConnection), #NODESET, #STRING)
nor class org.apache.xalan.lib.sql.XConnection.skip([ExpressionContext,] #NODESET, #STRING).
The methods I am currently trying are
public static void skip( ExpressionContext exprContext, XConnection doc, XNodeSet ns, String value )
public static void skip( ExpressionContext exprContext, SQLDocument doc, XNodeSet ns, String value )
public void skip( ExpressionContext exprContext, XNodeSet ns, XString value )
public void skip( XConnection doc, String value )
Can anyone shed some light on the situation ??
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org