You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Timo Boehme (JIRA)" <ji...@apache.org> on 2017/04/11 16:23:41 UTC
[jira] [Commented] (XALANJ-1522) function-available fails for
exsl:node-set or exsl:object-type
[ https://issues.apache.org/jira/browse/XALANJ-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15964597#comment-15964597 ]
Timo Boehme commented on XALANJ-1522:
-------------------------------------
I've also came accross XSL stylesheets for large public data sets which do not work with XalanJ because of this bug (test for exslt:node-set function). Since there is a nearly ready solution since 11 years maybe this could be solved now?
> function-available fails for exsl:node-set or exsl:object-type
> --------------------------------------------------------------
>
> Key: XALANJ-1522
> URL: https://issues.apache.org/jira/browse/XALANJ-1522
> Project: XalanJ2
> Issue Type: Bug
> Security Level: No security risk; visible to anyone(Ordinary problems in Xalan projects. Anybody can view the issue.)
> Components: Xalan-extensions
> Affects Versions: 2.7
> Environment: Operating System: All
> Platform: All
> Reporter: Pete Edwards
> Attachments: ExtensionHandlerJavaClass.java, MethodResolver.java
>
>
> 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>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org