xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Topi Nieminen (JIRA)" <xalan-...@xml.apache.org>
Subject [jira] Created: (XALANJ-2444) Error in current()
Date Fri, 02 May 2008 10:40:55 GMT
Error in current()

                 Key: XALANJ-2444
                 URL: https://issues.apache.org/jira/browse/XALANJ-2444
             Project: XalanJ2
          Issue Type: Bug
      Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects.
 Anybody can view the issue.)
          Components: XPath-function, XSLTC
    Affects Versions: 2.7.1
            Reporter: Topi Nieminen
            Priority: Minor

The following works with Xalan-J interpretive, but not with XSLTC.

	<xsl:template match="/">
		<xsl:apply-templates select="current()[root]"/>

XSLTC reports:

	Error checking type of the expression 'filter-expr(funcall(current, []), [pred(step("child",

This workaround works both in Xalan-J interpretive and XSLTC:

	<xsl:template match="/">
		<xsl:apply-templates select="self::node()[root]"/>

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message