we use xslt like this:
<preGoal name="xdoc:jelly-transform">
<!-- Major hack - set jaxp properties as they are foobared -->
${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.
apache.xalan.processor.TransformerFactoryImpl')}
<ant:xslt style="src/xdocs/glossary.xsl"
in="src/xdocs/glossary.xml"
out="target/generated-xdocs/glossary.xml"
>
<ant:classpath>
<ant:path refid="maven.dependency.classpath"/>
<ant:pathelement location="${tools.jar}"/>
</ant:classpath>
</ant:xslt>
</preGoal>
and it seems to work fine, the xerces entry looks like:
<dependency>
<id>xerces</id>
<version>2.2.1</version>
<url>http://xml.apache.org</url>
</dependency>
simon
The information contained in this e-mail is intended only for the person
or
entity to which it is addressed and may contain confidential and/or
privileged material. If You are not the intended recipient of this
e-mail,
the use of this information or any disclosure, copying or distribution
is
Prohibited and may be unlawful. If you received this in error, please
contact the sender and delete the material from any computer. The views
expressed in this e-mail may not necessarily be the views of The PCMS
Group
plc and should not be taken as authority to carry out any instruction
contained.
> -----Original Message-----
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: 19 August 2003 00:29
> To: 'Maven Users List'
> Subject: RE: XSLT transformation as maven-goal
>
>
> > You mention in that message upgrading Ant to 1.5.3 in Maven.
> > How exactly did you do that? I added a dependency on
> > ant-1.5.3-1.jar in project.xml, with no change in the results.
>
> Maven b10 comes distributed with that, so it should be fine.
> That's what I
> had to do to get it working.
>
> Sanity check:
> - is your CLASSPATH env variable set to something it shouldn't be?
> - is MAVEN_HOME pointing to b10, and it is also first in your path?
>
> > <ant:exec executable="ant" failonerror="true">
> > <ant:arg value="-Dmaven.repo.local=${maven.repo.local}" />
> > <ant:arg line="-f project-ant.xml" />
> > <ant:arg value="generate-sql" />
> > </ant:exec>
> >
> > This is how I'm not completely mental. I can do what needs to
> > be done in Ant; it's just in Maven that I can't get it to work.
>
> Fair enough. For something less ugly, you can probably use a
> taskdef for the
> style task, which can specify a classpath including xalan
> (maven.dependency.classpath). I think that will work.
>
> - Brett
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]