[ http://issues.apache.org/jira/browse/XALANJ-1384?page=all ]
Brian Minchau updated XALANJ-1384: ---------------------------------- Version: Latest Development Code (was: 2.4) > Getting variable value from Java Extension > ------------------------------------------ > > Key: XALANJ-1384 > URL: http://issues.apache.org/jira/browse/XALANJ-1384 > Project: XalanJ2 > Type: Bug > Components: Xalan-extensions > Versions: Latest Development Code > Environment: Operating System: Windows NT/2K > Platform: PC > Reporter: Ramil Israfilov > Assignee: Xalan Developers Mailing List > Attachments: TestExtension.java, test.xml, test.xsl > > We need to access variable from Java Extension. I found that it is possible > to > do by using XPathContext.getExpressionContext().getVariableOrParam(qname); > But when I try to do it I get an exception: > --------- > java org.apache.xalan.xslt.Process -IN test.xml -XSL test.xsl > <?xml version="1.0" encoding="UTF-8"?> > file:///D:/apache.prj/xalan-j_2_4_1/test.xsl; Line #11; Column #26; XSLT > Error ( > javax.xml.transform.TransformerException): Variable not resolvable: ddd > ------------- > Java source file, xml and xsl are attached -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]