Well, it seems my problems with EXSLT were nothing of the kind.

The following transform does not produce any output (messages or a
document element) at all:

<?xml version='1.0'?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
  xmlns:test="urn:colina.demon.co.uk:domwriter-test-one"
  xmlns:math="http://exslt.org/math";>

  <xsl:template match="/">
    <xsl:message>
      <xsl:text>math:abs to be tested</xsl:text>
    </xsl:message>
    <xsl:when test="function-available('math:abs')">
      <xsl:message>
        <xsl:text>math:abs available</xsl:text>
      </xsl:message>
      <transformed value="{math:abs(-3)}" />
    </xsl:when>
    <xsl:otherwise>
      <xsl:message>
        <xsl:text>math:abs not available</xsl:text>
      </xsl:message>
      <nottransformed />
    </xsl:otherwise> 
  </xsl:template>

</xsl:transform>


Is this a bug, or have I missed something?

(If I remove all the function-avaialble stuff, then it wouks as expected.)
-- 
Colin Paul Adams
Preston Lancashire

Reply via email to