[ https://issues.apache.org/jira/browse/XALANJ-2402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529905 ]
Henry Zongaro commented on XALANJ-2402: --------------------------------------- This problem was caused/exposed by my partial defect for defect XALANJ-1774. > 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 > > > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]