You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "ajay ponnappan (Commented) (JIRA)" <xa...@xml.apache.org> on 2011/12/21 16:13:30 UTC

[jira] [Commented] (XALANJ-2548) Problem in compiling stylesheet with new org.apache.xalan.xsltc.trax.TransformerFactoryImpl();

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

ajay ponnappan commented on XALANJ-2548:
----------------------------------------

Can you please share your thoughts on this problem
                
> 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, XSLTC
>    Affects Versions: 2.7
>         Environment: Windows
>            Reporter: ajay ponnappan
>             Fix For: 2.7
>
>         Attachments: stylesheets.zip
>
>
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org