xsl-list
[Top] [All Lists]

RE: launching Saxon 8.2 from xslt Ant task

2005-02-01 15:53:12
The spec says the processor attribute is:

name of the XSLT processor to use. Permissible values are "trax" for a TraX
compliant processor (ie JAXP interface implementation such as Xalan 2 or
Saxon), "xslp" for the XSL:P processor, "xalan" for the Apache XML Xalan
(version 1) processor the name of an arbitrary XSLTLiaison class. Defaults
to trax, followed by xalan and then xslp (in that order). The first one
found in your class path is the one that is used. DEPRECATED - XSL:P and
xalan are deprecated and no more supported..

That suggests you should use "trax", and then make sure Saxon is selected by
setting your classpath or system properties accordingly. Presumably Ant has
tried to load the class and cast it to an "XSLTLiaison" - seems an
unfriendly way of failing.

Michael Kay
http://www.saxonica.com/  

-----Original Message-----
From: Roger I Martin PhD [mailto:hypernexdev(_at_)hypernexinc(_dot_)com] 
Sent: 01 February 2005 16:37
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] launching Saxon 8.2 from xslt Ant task

Hi,

http://ant.apache.org/manual/CoreTasks/style.html

    <target name="NURBS">
        <xslt basedir="." processor="net.sf.saxon.Transform" 
classPath="C:\sourceforge\saxonb8-2\saxon8.jar" destdir="." 
in="xml/NURBSCurve2.xml" 
out="src/com/neuralworks/fea/mathml/NURBSCurve2.java" 
style="../../stylesheets/mathml2Java.xsl">
          <param name="baseClassName" 
expression="com.pombi.mathml.lang.AbstractEquation"/>
          <param name="packageName" 
expression="com.neuralworks.fea.mathml"/>
          <param name="className" expression="NURBSCurve2"/>
          <outputproperty name="method" value="text"/>
          <outputproperty name="encoding" value="UTF-8"/>
        </xslt>
    </target>

Throws an class cast exception.  I've tried 
net.sf.saxon.TransformerFactoryImpl and got the same.  Is it 
a class I 
don't know or Ant 1.6.1 doesn't know?

If I set the processor  attribute to "Saxon" as the Ant doc 
suggests, I 
get class not found.

Also if Michael Kay sees this,  what format should examples of use be 
written?

-Roger

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>