ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Stavnstrup ...@ddre.dk>
Subject Using the XSLT task ?
Date Wed, 24 Sep 2003 07:50:28 GMT
All,

I have been using Ant for a couple of years, without any problems what so 
ever (which could not be solved reading the manual). However, now the XSLT 
task really bugs me.

I am using Java 1.3.1_09, Saxon 6.5.2, Xerce 2.5.1 (and misc versions 
of ant  i.e. 1.5.1 - 1.5.4). I have also tried Xalan, but without success.

Enclosed is my small build file, and the resulting debug message,

Help would be vety much appreaciated !

Regards,

Jens

---------------------------------

<?xml version="1.0"?>

<project name="small-web" default="local" basedir=".">

<path id="xsltlib">
  <fileset dir="${basedir}/lib">
    <include name="saxon.jar"/>
    <include name="xml-apis.jar"/>
    <include name="xercesImpl.jar"/>
  </fileset>
</path>


<target name="prepare">
  <mkdir dir="local"/>
</target>


<target name="local" depends="prepare">
  <xslt processor="trax" 
        basedir="${basedir}/work" destdir="${basedir}/local"
        includes="**/*.xml" 
        style="style/copy.xsl"
        classpathref="xsltlib"/>
</target>


</project>


-------------------


Apache Ant version 1.5.4 compiled on August 12 2003
Buildfile: build.xml
Detected Java version: 1.3 in: /usr/java/jdk1.3.1_09/jre
Detected OS: Linux
 +User task: propertyfile     org.apache.tools.ant.taskdefs.optional.PropertyFile
 +User task: vsscheckin     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN
 +User task: sql     org.apache.tools.ant.taskdefs.SQLExec
 +User task: cvspass     org.apache.tools.ant.taskdefs.CVSPass
 +User task: p4reopen     org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen
 +User task: csc     org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
 +User task: dirname     org.apache.tools.ant.taskdefs.Dirname
 +User task: wlrun     org.apache.tools.ant.taskdefs.optional.ejb.WLRun
 +User task: p4label     org.apache.tools.ant.taskdefs.optional.perforce.P4Label
 +User task: p4revert     org.apache.tools.ant.taskdefs.optional.perforce.P4Revert
 +User task: replaceregexp     org.apache.tools.ant.taskdefs.optional.ReplaceRegExp
 +User task: get     org.apache.tools.ant.taskdefs.Get
 +User task: jjtree     org.apache.tools.ant.taskdefs.optional.javacc.JJTree
 +User task: sleep     org.apache.tools.ant.taskdefs.Sleep
 +User task: jarlib-display     org.apache.tools.ant.taskdefs.optional.extension.JarLibDisplayTask
 +User task: dependset     org.apache.tools.ant.taskdefs.DependSet
 +User task: zip     org.apache.tools.ant.taskdefs.Zip
 +User task: patch     org.apache.tools.ant.taskdefs.Patch
 +User task: jspc     org.apache.tools.ant.taskdefs.optional.jsp.JspC
 +User task: style     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: test     org.apache.tools.ant.taskdefs.optional.Test
 +User task: tstamp     org.apache.tools.ant.taskdefs.Tstamp
 +User task: unwar     org.apache.tools.ant.taskdefs.Expand
 +User task: vsshistory     org.apache.tools.ant.taskdefs.optional.vss.MSVSSHISTORY
 +User task: icontract     org.apache.tools.ant.taskdefs.optional.IContract
 +User task: cvschangelog     org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask
 +User task: p4submit     org.apache.tools.ant.taskdefs.optional.perforce.P4Submit
 +User task: ccmcheckin     org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckin
 +User task: p4change     org.apache.tools.ant.taskdefs.optional.perforce.P4Change
 +User task: bzip2     org.apache.tools.ant.taskdefs.BZip2
 +User task: p4delete     org.apache.tools.ant.taskdefs.optional.perforce.P4Delete
 +User task: vssadd     org.apache.tools.ant.taskdefs.optional.vss.MSVSSADD
 +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
 +User task: translate     org.apache.tools.ant.taskdefs.optional.i18n.Translate
 +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
 +User task: vajload     org.apache.tools.ant.taskdefs.optional.ide.VAJLoadProjects
 +User task: jarlib-available     org.apache.tools.ant.taskdefs.optional.extension.JarLibAvailableTask
 +User task: WsdlToDotnet     org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
 +User task: buildnumber     org.apache.tools.ant.taskdefs.BuildNumber
 +User task: jpcovmerge     org.apache.tools.ant.taskdefs.optional.sitraka.CovMerge
 +User task: ejbjar     org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
 +User task: war     org.apache.tools.ant.taskdefs.War
Could not load a dependent class (com/starbase/starteam/Item) for task stlist
 +User task: rename     org.apache.tools.ant.taskdefs.Rename
 +User task: sequential     org.apache.tools.ant.taskdefs.Sequential
 +User task: serverdeploy     org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
 +User task: property     org.apache.tools.ant.taskdefs.Property
 +User task: move     org.apache.tools.ant.taskdefs.Move
 +User task: copydir     org.apache.tools.ant.taskdefs.Copydir
 +User task: cccheckin     org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin
 +User task: wljspc     org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
 +User task: fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF
Could not load a dependent class (com/oroinc/net/SocketClient) for task telnet
 +User task: sosget     org.apache.tools.ant.taskdefs.optional.sos.SOSGet
 +User task: pathconvert     org.apache.tools.ant.taskdefs.PathConvert
 +User task: record     org.apache.tools.ant.taskdefs.Recorder
 +User task: p4sync     org.apache.tools.ant.taskdefs.optional.perforce.P4Sync
 +User task: exec     org.apache.tools.ant.taskdefs.ExecTask
 +User task: p4edit     org.apache.tools.ant.taskdefs.optional.perforce.P4Edit
 +User task: manifest     org.apache.tools.ant.taskdefs.ManifestTask
 +User task: maudit     org.apache.tools.ant.taskdefs.optional.metamata.MAudit
 +User task: antlr     org.apache.tools.ant.taskdefs.optional.ANTLR
 +User task: netrexxc     org.apache.tools.ant.taskdefs.optional.NetRexxC
Could not load a dependent class (com/oroinc/net/ftp/FTP) for task ftp
 +User task: jpcovreport     org.apache.tools.ant.taskdefs.optional.sitraka.CovReport
 +User task: execon     org.apache.tools.ant.taskdefs.ExecuteOn
 +User task: ccmcheckout     org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckout
 +User task: ant     org.apache.tools.ant.taskdefs.Ant
 +User task: xmlvalidate     org.apache.tools.ant.taskdefs.optional.XMLValidateTask
 +User task: xslt     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: iplanet-ejbc     org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbcTask
 +User task: ccmcheckintask     org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckinDefault
 +User task: gzip     org.apache.tools.ant.taskdefs.GZip
 +User task: native2ascii     org.apache.tools.ant.taskdefs.optional.Native2Ascii
 +User task: starteam     org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut
 +User task: ear     org.apache.tools.ant.taskdefs.Ear
 +User task: input     org.apache.tools.ant.taskdefs.Input
 +User task: rmic     org.apache.tools.ant.taskdefs.Rmic
 +User task: checksum     org.apache.tools.ant.taskdefs.Checksum
 +User task: mail     org.apache.tools.ant.taskdefs.email.EmailTask
 +User task: loadfile     org.apache.tools.ant.taskdefs.LoadFile
 +User task: vsscheckout     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKOUT
 +User task: stylebook     org.apache.tools.ant.taskdefs.optional.StyleBook
 +User task: soscheckin     org.apache.tools.ant.taskdefs.optional.sos.SOSCheckin
 +User task: mimemail     org.apache.tools.ant.taskdefs.optional.net.MimeMail
 +User task: stlabel     org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel
 +User task: gunzip     org.apache.tools.ant.taskdefs.GUnzip
 +User task: concat     org.apache.tools.ant.taskdefs.Concat
 +User task: cab     org.apache.tools.ant.taskdefs.optional.Cab
 +User task: touch     org.apache.tools.ant.taskdefs.Touch
 +User task: parallel     org.apache.tools.ant.taskdefs.Parallel
 +User task: splash     org.apache.tools.ant.taskdefs.optional.splash.SplashTask
 +User task: antcall     org.apache.tools.ant.taskdefs.CallTarget
 +User task: cccheckout     org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout
 +User task: typedef     org.apache.tools.ant.taskdefs.Typedef
 +User task: p4have     org.apache.tools.ant.taskdefs.optional.perforce.P4Have
 +User task: filter     org.apache.tools.ant.taskdefs.Filter
 +User task: xmlproperty     org.apache.tools.ant.taskdefs.XmlProperty
Could not load a dependent class (jdepend/xmlui/JDepend) for task jdepend
 +User task: copy     org.apache.tools.ant.taskdefs.Copy
 +User task: antstructure     org.apache.tools.ant.taskdefs.AntStructure
Could not load a dependent class (com/ibm/bsf/BSFException) for task script
 +User task: ccmcreatetask     org.apache.tools.ant.taskdefs.optional.ccm.CCMCreateTask
 +User task: rpm     org.apache.tools.ant.taskdefs.optional.Rpm
 +User task: delete     org.apache.tools.ant.taskdefs.Delete
 +User task: replace     org.apache.tools.ant.taskdefs.Replace
 +User task: mmetrics     org.apache.tools.ant.taskdefs.optional.metamata.MMetrics
 +User task: waitfor     org.apache.tools.ant.taskdefs.WaitFor
 +User task: untar     org.apache.tools.ant.taskdefs.Untar
 +User task: loadproperties     org.apache.tools.ant.taskdefs.LoadProperties
 +User task: available     org.apache.tools.ant.taskdefs.Available
 +User task: echoproperties     org.apache.tools.ant.taskdefs.optional.EchoProperties
Could not load a dependent class (junit/framework/TestListener) for task junit
Could not load a dependent class (com/starbase/starteam/Item) for task stcheckin
 +User task: vajexport     org.apache.tools.ant.taskdefs.optional.ide.VAJExport
Could not load a dependent class (com/starbase/starteam/Item) for task stcheckout
 +User task: bunzip2     org.apache.tools.ant.taskdefs.BUnzip2
 +User task: copyfile     org.apache.tools.ant.taskdefs.Copyfile
 +User task: vsscreate     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCREATE
 +User task: ejbc     org.apache.tools.ant.taskdefs.optional.ejb.Ejbc
 +User task: unjar     org.apache.tools.ant.taskdefs.Expand
 +User task: wsdltodotnet     org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
 +User task: mkdir     org.apache.tools.ant.taskdefs.Mkdir
 +User task: condition     org.apache.tools.ant.taskdefs.ConditionTask
 +User task: cvs     org.apache.tools.ant.taskdefs.Cvs
 +User task: tempfile     org.apache.tools.ant.taskdefs.TempFile
 +User task: junitreport     org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
 +User task: taskdef     org.apache.tools.ant.taskdefs.Taskdef
 +User task: echo     org.apache.tools.ant.taskdefs.Echo
 +User task: ccupdate     org.apache.tools.ant.taskdefs.optional.clearcase.CCUpdate
 +User task: java     org.apache.tools.ant.taskdefs.Java
 +User task: renameext     org.apache.tools.ant.taskdefs.optional.RenameExtensions
 +User task: vsslabel     org.apache.tools.ant.taskdefs.optional.vss.MSVSSLABEL
 +User task: basename     org.apache.tools.ant.taskdefs.Basename
 +User task: javadoc2     org.apache.tools.ant.taskdefs.Javadoc
 +User task: vsscp     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCP
 +User task: tar     org.apache.tools.ant.taskdefs.Tar
 +User task: vajimport     org.apache.tools.ant.taskdefs.optional.ide.VAJImport
 +User task: setproxy     org.apache.tools.ant.taskdefs.optional.net.SetProxy
 +User task: wlstop     org.apache.tools.ant.taskdefs.optional.ejb.WLStop
 +User task: p4counter     org.apache.tools.ant.taskdefs.optional.perforce.P4Counter
 +User task: ilasm     org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
 +User task: soscheckout     org.apache.tools.ant.taskdefs.optional.sos.SOSCheckout
 +User task: apply     org.apache.tools.ant.taskdefs.Transform
 +User task: ccuncheckout     org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
 +User task: jarlib-resolve     org.apache.tools.ant.taskdefs.optional.extension.JarLibResolveTask
 +User task: jlink     org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
 +User task: cvstagdiff     org.apache.tools.ant.taskdefs.cvslib.CvsTagDiff
 +User task: javacc     org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
 +User task: chmod     org.apache.tools.ant.taskdefs.Chmod
 +User task: pvcs     org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs
 +User task: jarlib-manifest     org.apache.tools.ant.taskdefs.optional.extension.JarLibManifestTask
 +User task: jar     org.apache.tools.ant.taskdefs.Jar
 +User task: sound     org.apache.tools.ant.taskdefs.optional.sound.SoundTask
 +User task: mparse     org.apache.tools.ant.taskdefs.optional.metamata.MParse
 +User task: blgenclient     org.apache.tools.ant.taskdefs.optional.ejb.BorlandGenerateClient
 +User task: uptodate     org.apache.tools.ant.taskdefs.UpToDate
 +User task: genkey     org.apache.tools.ant.taskdefs.GenerateKey
 +User task: javah     org.apache.tools.ant.taskdefs.optional.Javah
 +User task: ccmreconfigure     org.apache.tools.ant.taskdefs.optional.ccm.CCMReconfigure
 +User task: fail     org.apache.tools.ant.taskdefs.Exit
 +User task: unzip     org.apache.tools.ant.taskdefs.Expand
 +User task: javac     org.apache.tools.ant.taskdefs.Javac
 +User task: p4add     org.apache.tools.ant.taskdefs.optional.perforce.P4Add
 +User task: jpcoverage     org.apache.tools.ant.taskdefs.optional.sitraka.Coverage
 +User task: soslabel     org.apache.tools.ant.taskdefs.optional.sos.SOSLabel
 +User task: depend     org.apache.tools.ant.taskdefs.optional.depend.Depend
 +User task: vssget     org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
 +User task: deltree     org.apache.tools.ant.taskdefs.Deltree
 +User task: ddcreator     org.apache.tools.ant.taskdefs.optional.ejb.DDCreator
 +User datatype: patternset     org.apache.tools.ant.types.PatternSet
 +User datatype: filterset     org.apache.tools.ant.types.FilterSet
 +User datatype: libfileset     org.apache.tools.ant.taskdefs.optional.extension.LibFileSet
 +User datatype: filterreader     org.apache.tools.ant.types.AntFilterReader
 +User datatype: extension     org.apache.tools.ant.taskdefs.optional.extension.ExtensionAdapter
 +User datatype: fileset     org.apache.tools.ant.types.FileSet
 +User datatype: dirset     org.apache.tools.ant.types.DirSet
 +User datatype: filelist     org.apache.tools.ant.types.FileList
 +User datatype: filterchain     org.apache.tools.ant.types.FilterChain
 +User datatype: path     org.apache.tools.ant.types.Path
 +User datatype: classfileset     org.apache.tools.ant.types.optional.depend.ClassfileSet
 +User datatype: description     org.apache.tools.ant.types.Description
 +User datatype: xmlcatalog     org.apache.tools.ant.types.XMLCatalog
 +User datatype: selector     org.apache.tools.ant.types.selectors.SelectSelector
 +User datatype: mapper     org.apache.tools.ant.types.Mapper
 +User datatype: substitution     org.apache.tools.ant.types.Substitution
 +User datatype: extensionSet     org.apache.tools.ant.taskdefs.optional.extension.ExtensionSet
 +User datatype: regexp     org.apache.tools.ant.types.RegularExpression
Setting ro project property: ant.version -> Apache Ant version 1.5.4 compiled on August
12 2003
Setting ro project property: ant.file -> /home/js/work/private/frem/web/build.xml
parsing buildfile build.xml with URI = file:/home/js/work/private/frem/web/build.xml
Setting ro project property: ant.project.name -> frem-web
Adding reference: frem-web -> org.apache.tools.ant.Project@765a16
Project base dir set to: /home/js/work/private/frem/web
   +DataType: path
Adding reference: xsltlib -> 
 +Target: prepare
   +Task: mkdir
 +Target: local
   +Task: xslt
Build sequence for target `local' is [prepare, local]
Complete build sequence is [prepare, local]

prepare:

local:
fileset: Setup scanner in dir /home/js/work/private/frem/web/lib with patternSet{ includes:
[saxon.jar, xml-apis.jar, xercesImpl.jar] excludes: [] }
Class org.apache.tools.ant.taskdefs.optional.TraXLiaison loaded from parent loader
     [xslt] Using class org.apache.tools.ant.taskdefs.optional.TraXLiaison
fileset: Setup scanner in dir /home/js/work/private/frem/web/work with patternSet{ includes:
[**/*.xml] excludes: [] }
     [xslt] Transforming into /home/js/work/private/frem/web/local
     [xslt] Processing /home/js/work/private/frem/web/work/about.xml to /home/js/work/private/frem/web/local/about.html
     [xslt] Loading stylesheet /home/js/work/private/frem/web/style/copy.xsl

BUILD FAILED
javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.TransformerFactory
cannot be found
	at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
	at org.apache.tools.ant.taskdefs.optional.TraXLiaison.getFactory(TraXLiaison.java:387)
	at org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraXLiaison.java:336)
	at org.apache.tools.ant.taskdefs.optional.TraXLiaison.createTransformer(TraXLiaison.java:354)
	at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:181)
	at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:487)
	at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:259)
	at org.apache.tools.ant.Task.perform(Task.java:341)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at org.apache.tools.ant.Target.performTasks(Target.java:336)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
	at org.apache.tools.ant.Main.runBuild(Main.java:609)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 4 seconds
javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.TransformerFactory
cannot be found
	at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
	at org.apache.tools.ant.taskdefs.optional.TraXLiaison.getFactory(TraXLiaison.java:387)
	at org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraXLiaison.java:336)
	at org.apache.tools.ant.taskdefs.optional.TraXLiaison.createTransformer(TraXLiaison.java:354)
	at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:181)
	at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:487)
	at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:259)
	at org.apache.tools.ant.Task.perform(Task.java:341)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at org.apache.tools.ant.Target.performTasks(Target.java:336)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
	at org.apache.tools.ant.Main.runBuild(Main.java:609)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)
Provider for javax.xml.transform.TransformerFactory cannot be found





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


Mime
View raw message