You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Marc Loiselle (JIRA)" <xa...@xml.apache.org> on 2007/02/06 21:42:05 UTC
[jira] Created: (XALANJ-2362) xsl:param to xsl:variable
redefinition error not properly handled
xsl:param to xsl:variable redefinition error not properly handled
-----------------------------------------------------------------
Key: XALANJ-2362
URL: https://issues.apache.org/jira/browse/XALANJ-2362
Project: XalanJ2
Issue Type: Bug
Components: XSLTC
Affects Versions: 2.7
Reporter: Marc Loiselle
The following XSL is not correct but XSLTC does not identify the problem line and does not continue to process the rest of the document.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="this_pagerule_hints" />
<xsl:variable name="this_pagerule_hints" />
<xsl:template match="/">
<xsl:param name="this_pagerule_hint" />
<xsl:variable name="this_pagerule_hint" />
</xsl:template>
</xsl:stylesheet>
java -cp xalan.jar org.apache.xalan.xsltc.cmdline.Compile test.xsl
This is what the compiler outputs:
java.lang.ClassCastException: org.apache.xalan.xsltc.compiler.Variable
at org.apache.xalan.xsltc.compiler.SymbolTable.addParam(SymbolTable.java
:85)
at org.apache.xalan.xsltc.compiler.Param.parseContents(Param.java:133)
at org.apache.xalan.xsltc.compiler.Stylesheet.parseOwnChildren(Styleshee
t.java:575)
at org.apache.xalan.xsltc.compiler.Stylesheet.parseContents(Stylesheet.j
ava:557)
at org.apache.xalan.xsltc.compiler.Parser.createAST(Parser.java:381)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:344)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:253)
at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:389)
at org.apache.xalan.xsltc.cmdline.Compile.main(Compile.java:129)
Compiler errors:
org.apache.xalan.xsltc.compiler.Variable
This is what it should output:
Compiler errors:
file:/C:/cygwin/home/mloiselle/Projects/TheLevel/java/packages/org.apache.xalan/build/test.xsl: line 5:
Variable 'this_pagerule_hints' is multiply defined in the same scope.
file:/C:/cygwin/home/mloiselle/Projects/TheLevel/java/packages/org.apache.xalan/build/test.xsl: line 9:
Variable 'this_pagerule_hint' is multiply defined in the same scope.
--
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