Better but still broken. When the function returns, it does not
cause an error but the returned object tests for false. i.e. The
error checking  is caught in this example code although the
function returns a registered DTM.


         <xsl:variable name="table" select='sql:pquery($db, $q1, $q1type )'/>

          <!--
           Let's include Error Checking, the error is actually stored
            in the connection since $table will be either data or null
          -->

          <xsl:if test="not($table)" >
           <xsl:message>Error in Query</xsl:message>
            <xsl:copy-of select="sql:getError($db)/ext-error" />
          </xsl:if>

John G



[EMAIL PROTECTED] wrote:

> John Gentilin <[EMAIL PROTECTED]> wrote:
> > The extension functions seem to be broken with yesterdays
> > checkout. I am having problems with any extension function
> > that returns a DTM.
>
> Hi John.  Sorry about that.  I just checked in what I hope will be a fix
> for this.  See the commit or
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2925 for details.
>
> We don't have tests for extensions returning a DTM, DTMAxisIterator, or
> DTMIterator, which is how this slipped through.  I'll try to get some tests
> written for this.
>
> -scott

Reply via email to