You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/05/14 11:15:23 UTC

DO NOT REPLY [Bug 28970] New: - function-available fails for exsl:node-set or exsl:object-type

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28970>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28970

function-available fails for exsl:node-set or exsl:object-type

           Summary: function-available fails for exsl:node-set or
                    exsl:object-type
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: org.apache.xalan.extensions
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: peter.edwards@astrazeneca.com


The function "function-available" fails to identify exslt common functions.

Stylesheet:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" 
  xmlns:set="http://exslt.org/sets" 
  xmlns:exsl="http://exslt.org/common"
  xmlns:str="http://exslt.org/strings" 
  xmlns:xalan="http://xml.apache.org/xslt" 
  extension-element-prefixes="set str exsl xalan" 
  exclude-result-prefixes="set str exsl xalan"
>
  <xsl:template match="test">
    <results>
      <xsl:if test="function-available('count')">
        <p>count available</p>
      </xsl:if>
      <xsl:if test="function-available('set:distinct')">
        <p>set:distinct available</p>
      </xsl:if>
      <xsl:if test="function-available('str:tokenize')">
        <p>str:tokenize available</p>
      </xsl:if>
      <xsl:if test="function-available('exsl:node-set')">
        <p>exsl:node-set available</p>
      </xsl:if>
      <xsl:if test="function-available('exsl:object-type')">
        <p>exsl:object-type available</p>
      </xsl:if>
      <xsl:if test="function-available('xalan:nodeset')">
        <p>xalan:nodeset available</p>
      </xsl:if>
    </results>
  </xsl:template>
</xsl:stylesheet>

XML:
<?xml version="1.0" encoding="UTF-8"?>
<test/>

Results with Xalan 2.6.0:
<results>
  <p>count available</p>
  <p>set:distinct available</p>
  <p>str:tokenize available</p>
  <p>xalan:nodeset available</p>
</results>

Results with xsltproc:
<results>
  <p>count available</p>
  <p>set:distinct available</p>
  <p>str:tokenize available</p>
  <p>exsl:node-set available</p>
  <p>exsl:object-type available</p>
</results>

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org