You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Chris Pratt <ch...@planetpratt.com> on 2004/10/29 09:17:37 UTC

XSLT from the Command Line in Java 5

Ever since I installed JDK 1.5 I haven't been able to run the XSLT command
line utility to check my FO.  Did something change?  The command I'm
executing is:

 

java org.apache.xalan.xslt.Process -in <xmlfile> -xsl <xslfile> -out
<fofile>

 

Thanks.

  (*Chris*)


Re: XSLT from the Command Line in Java 5

Posted by Dave Flanagan <da...@trainingetc.com>.
Further info in regards to the Process class can be found in Sun's bug
database:
The bug was opened as Bug#5099865


Here is Sun's official response to the bug - which is now closed:
************************************************************************
     Work Around

     N/A

     Evaluation

     We will not fix this because JDK 5
     does not include Xalan, but only
     includes XSLTC as the XSLT transformation engine.

     The customer can use the 1.2.6 version of JAXP
     in the JWSDP 1.4 release which has Xalan.
     xxxxx@xxxxx  10/18/04 15:35 GMT
************************************************************************

Examining the source code for  com.sun.org.apache.xalan.internal.xslt.Process
shows that the there is a    public static void _main(String argv[])
That while not being able to be run from the comand line would be easy
enough to wrap in your own main method, Keep in mind that it is no no
longer being supported by Sun (they recommend the workaround as stated
above).


Hope this helps,
Dave Flanagan






 

> Sun seems to have relocated Xalan in to a different package. The
> "Process" class is now at
> com.sun.org.apache.xalan.internal.xslt.Process.

> But even using this class I get an error message: 
> Exception in thread "main" java.lang.NoSuchMethodError: main

> I don't know what they did when they compiled Xalan. As a work-around
> just put the latest Xalan release in the
> <YOUR_JAVA5_HOME>/jre/lib/endorsed
> directory and you should be able to run the XSLT command line like
> before.

> On 29.10.2004 09:17:37 Chris Pratt wrote:
>> Ever since I installed JDK 1.5 I haven't been able to run the XSLT command
>> line utility to check my FO.  Did something change?  The command I'm
>> executing is:
>> 
>>  
>> 
>> java org.apache.xalan.xslt.Process -in <xmlfile> -xsl <xslfile> -out
>> <fofile>


> Jeremias Maerki




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: XSLT from the Command Line in Java 5

Posted by Jeremias Maerki <de...@greenmail.ch>.
Sun seems to have relocated Xalan in to a different package. The
"Process" class is now at com.sun.org.apache.xalan.internal.xslt.Process.

But even using this class I get an error message: 
Exception in thread "main" java.lang.NoSuchMethodError: main

I don't know what they did when they compiled Xalan. As a work-around
just put the latest Xalan release in the <YOUR_JAVA5_HOME>/jre/lib/endorsed
directory and you should be able to run the XSLT command line like
before.

On 29.10.2004 09:17:37 Chris Pratt wrote:
> Ever since I installed JDK 1.5 I haven't been able to run the XSLT command
> line utility to check my FO.  Did something change?  The command I'm
> executing is:
> 
>  
> 
> java org.apache.xalan.xslt.Process -in <xmlfile> -xsl <xslfile> -out
> <fofile>


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: XSLT from the Command Line in Java 5

Posted by "Ganesh Babu Nallamothu, Integra-India" <ga...@integra-india.com>.
What is the error you are receiving.

Ganesh

  -----Original Message-----
  From: Chris Pratt [mailto:chris@planetpratt.com]
  Sent: Friday, October 29, 2004 12:48 PM
  To: fop-user@xml.apache.org
  Subject: XSLT from the Command Line in Java 5


  Ever since I installed JDK 1.5 I haven't been able to run the XSLT command
line utility to check my FO.  Did something change?  The command I'm
executing is:



  java org.apache.xalan.xslt.Process -in <xmlfile> -xsl <xslfile> -out
<fofile>



  Thanks.

    (*Chris*)