Problem in compiling stylesheet with new
org.apache.xalan.xsltc.trax.TransformerFactoryImpl();
----------------------------------------------------------------------------------------------
Key: XALANJ-2548
URL: https://issues.apache.org/jira/browse/XALANJ-2548
Project: XalanJ2
Issue Type: Task
Security Level: No security risk; visible to anyone (Ordinary problems in
Xalan projects. Anybody can view the issue.)
Components: Xalan
Affects Versions: 2.7
Environment: Windows
Reporter: ajay ponnappan
Fix For: 2.7
The following piece of code is giving exception
public static void main(String[] args) {
// TODO Auto-generated method stub
Source s = new StreamSource("C:\\ajay\\working
on\\15248,033,866\\DriverEnquiryToDSA.xsl");
TransformerFactory factory = new
org.apache.xalan.xsltc.trax.TransformerFactoryImpl();
factory.setErrorListener(new errlist());
try {
factory.newTemplates(s);
System.out.println("finished");
} catch (TransformerConfigurationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
The problem seems to be because of some unsupported thing in the stylesheet
which I am not able to find out. Can you help me to point out what is wrong
with the stylesheet. The error I am getting while executing the above code is
javax.xml.transform.TransformerConfigurationException: Could not compile
stylesheet
at
org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:866)
at xsltcompile.main(xsltcompile.java:19)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.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]