xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul morgan" <pm...@lycos.com>
Subject Re: Problem with command line utility and "-URIRESOLVER" option
Date Fri, 11 Oct 2002 23:05:35 GMT
Thanks for the response ... and my bad for not mentioning what my setup is: JDK 1.4.1, Xalan-J
2.4.0, and Xerces 2.2.0 using Cygwin (on WinXP Pro).  Following your suggestion (and adding
-verbose)

    java -verbose -Xbootclasspath/a:resolver.jar org.apache.xalan.xslt.Process \
         -IN Tests/Test1.xml -XSL WordDance.xsl -OUT result.xml \
         -URIRESOLVER TestResolver

    [Opened C:\Program Files\Java\j2re1.4.1\lib\endorsed\bsf.jar]
    [Opened C:\Program Files\Java\j2re1.4.1\lib\endorsed\dom.jar]
    [Opened C:\Program Files\Java\j2re1.4.1\lib\endorsed\sax.jar]
    [Opened C:\Program Files\Java\j2re1.4.1\lib\endorsed\xalan.jar]
    [Opened C:\Program Files\Java\j2re1.4.1\lib\endorsed\xercesImpl.jar]
    [Opened C:\Program Files\Java\j2re1.4.1\lib\endorsed\xsltc.jar]
    [Opened C:\Program Files\Java\j2re1.4.1\lib\rt.jar]
       :
    [Opened resolver.jar]
       :
    [Loaded javax.xml.transform.URIResolver from C:\Program Files\Java\j2re1.4.1\lib\rt.jar]
    [Loaded TestResolver from resolver.jar]
       :
    Class file not found for option -URIResolver

So it appears to me that "resolver.jar" is opened and "TestResolver" is being loaded, but
then it claims that the class file can't be found ... I'm confused.

Any other thoughts on what I might try?

Once again, thanks for your help.

Paul


On Fri, 11 Oct 2002 17:22:34  
 mkwan wrote:
>Looks like you are using JDK 1.4, because you can run the command without
>adding xalan.jar to the CLASSPATH. JDK 1.4 is actually using its own
>builtin Xalan (packaged in rt.jar) to run the transformation. The builtin
>Xalan is on JDK's bootclasspath. If you also add resolver.jar to the
>bootclasspath, it will work.
>
>java -Xbootclasspath/a:resolver.jar org.apache.xalan.xslt.Process ....
>
>If you want to use a newer Xalan version, please refer to Sun's endorsed
>mechanism on how to do that
>(http://java.sun.com/j2se/1.4/docs/guide/standards/).
>
>Morris Kwan
>XSLT Development
>IBM Toronto Lab
>Tel: (905)413-3729
>Email: mkwan@ca.ibm.com



____________________________________________________________
Watch a championship game with Elway or McGwire.
Enter Now at http://champions.lycos.com 

Mime
View raw message