ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Fouché <emmanuel.fou...@atosorigin.com>
Subject RE : xslt task & Xalan2
Date Tue, 26 Nov 2002 17:35:43 GMT
Doesn't seem to work either.
Anyway, the xslt task javadoc claims 'trax' to be the default argument
for the processor attribute.


> -----Message d'origine-----
> De : Dominique Devienne [mailto:DDevienne@lgc.com] 
> Envoyé : mardi 26 novembre 2002 18:25
> À : 'Ant Users List'
> Objet : RE: xslt task & Xalan2
> 
> 
> Try with <xslt ... processor="trax">. --DD
> 
> -----Original Message-----
> From: Emmanuel Fouché [mailto:emmanuel.fouche@atosorigin.com] 
> Sent: Tuesday, November 26, 2002 11:20 AM
> To: Ant Users List
> Subject: xslt task & Xalan2
> 
> I just downloads the 1.5.1 release and intend to do some nice 
> xslt transformation. Alas, when I execute the following task:
> 
> <target name="transform-config">
> <xslt basedir="${version.xml.dir}/server/dao-factory.xml" 
> 	destdir="${version.xml-transform.dir}/server"
> 	extension=".properties" 
> 	style="${version.xml.dir}/server/dao-factory.xsl"
> 	classpath="${xalan.home}/${xalan.jar.path}">
> 	<param name="db-type" expression="oracle"/>
> 	<outputproperty name="method" value="text"/>
> 	<outputproperty name="encoding" value="iso-8859-1"/>
> </xslt>
> </target>
> 
> I get the following error:
>      [xslt] DEPRECATED - xslp processor is deprecated. Use 
> trax or xalan instead.
>      [xslt] java.lang.ClassNotFoundException: 
> org.apache.tools.ant.taskdefs.optional.XslpLiaison
>      [xslt]     at
> org.apache.tools.ant.AntClassLoader.findClassInComponents(AntC
> lassLoader
> ..java:1076)
>      [xslt]     at
> org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.j
> ava:1037)
>      [xslt]     at
> org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:926)
>      [xslt]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProces
> s.java:398
> )
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSL
> TProcess.j
> ava:375)
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProce
> ss.java:55
> 7)
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.
> java:195)
>      [xslt]     at org.apache.tools.ant.Task.perform(Task.java:319)
>      [xslt]     at 
> org.apache.tools.ant.Target.execute(Target.java:309)
>      [xslt]     at
> org.apache.tools.ant.Target.performTasks(Target.java:336)
>      [xslt]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>      [xslt]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>      [xslt]     at org.apache.tools.ant.Main.runBuild(Main.java:610)
>      [xslt]     at org.apache.tools.ant.Main.start(Main.java:196)
>      [xslt]     at org.apache.tools.ant.Main.main(Main.java:235)
>      [xslt] java.lang.ClassNotFoundException: 
> org.apache.tools.ant.taskdefs.optional.XalanLiaison
>      [xslt]     at
> org.apache.tools.ant.AntClassLoader.findClassInComponents(AntC
> lassLoader
> ..java:1076)
>      [xslt]     at
> org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.j
> ava:1037)
>      [xslt]     at
> org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:926)
>      [xslt]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProces
> s.java:398
> )
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSL
> TProcess.j
> ava:378)
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProce
> ss.java:55
> 4)
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.
> java:195)
>      [xslt]     at org.apache.tools.ant.Task.perform(Task.java:319)
>      [xslt]     at 
> org.apache.tools.ant.Target.execute(Target.java:309)
>      [xslt]     at
> org.apache.tools.ant.Target.performTasks(Target.java:336)
>      [xslt]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>      [xslt]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>      [xslt]     at org.apache.tools.ant.Main.runBuild(Main.java:610)
>      [xslt]     at org.apache.tools.ant.Main.start(Main.java:196)
>      [xslt]     at org.apache.tools.ant.Main.main(Main.java:235)
> 
> I found out that the build process of the 1.5.1 release 
> excludes the compilation 
> of XalanLiaison unless you have Xalan1 installed and 
> accessible to ant, i.e. in 
> the ${ant.home}/lib directory). 
> To bad since the ant release ships with Xerces2.
> 
> The additionnal trouble is that Xalan1.x is no more downloadable from
> apache:
> <cite url="http://xml.apache.org/xalan-j/index.html">
> Xalan-Java version 1 is no longer supported and no longer 
> available from xml.apache.org. </cite>
> 
> Well, I'm wondering wether someone managed to use xalan2 with 
> ant for the xslt/style tasks, and how to correctly build the release.
> 
> Regards,
> 	Emmanuel 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message