You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Christine Li (JIRA)" <xa...@xml.apache.org> on 2007/10/11 22:26:50 UTC

[jira] Commented: (XALANJ-2402) NullPointerException thrown for AVT in descendant of a literal result element that has a namespace declaration

    [ https://issues.apache.org/jira/browse/XALANJ-2402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534150 ] 

Christine Li commented on XALANJ-2402:
--------------------------------------

The patch looks good to me. It should resolve the problem

> NullPointerException thrown for AVT in descendant of a literal result element that has a namespace declaration
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: XALANJ-2402
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2402
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: XSLTC
>            Reporter: Henry Zongaro
>             Fix For: The Latest Development Code
>
>         Attachments: j2402.xsl, patch.j2402.txt
>
>
> If the "name" attribute of an xsl:element or xsl:attribute is calculated, and the instruction has an ancestor that is a literal result element that has a namespace declaration, a NulPointerException is thrown.  The traceback is as follows:
> java.lang.NullPointerException
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.getXSLTC(SyntaxTreeNode.java:397)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.getNodeIDForStylesheetNSLookup(SyntaxTreeNode.java:772)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.getNodeIDForStylesheetNSLookup(SyntaxTreeNode.java:760)
>         at org.apache.xalan.xsltc.compiler.XslElement.translate(XslElement.java:264)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:515)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:403)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:515)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:337)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:66)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:551)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:564)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:826)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:614)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:729)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:364)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:439)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:790)
>         at org.apache.xalan.xslt.Process.main(Process.java:752)

-- 
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