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]"/>
</xsl:template>
XSLTC reports:
Error checking type of the expression 'filter-expr(funcall(current,
[]), [pred(step("child", 14))])'.
This workaround works both in Xalan-J interpretive and XSLTC:
<xsl:template match="/">
<xsl:apply-templates select="self::node()[root]"/>
</xsl:template>
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]