You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mark Lybarger <ml...@gmail.com> on 2006/03/30 15:50:16 UTC
ant xslt on java 1.5
i'm trying to use ant's xslt task on java 1.5.
Here's my target call:
<xslt includes="docsrc/manual/my-manual.xml"
style="${tools}/lib/docbook/docbook-xsl/html/chunk.xsl"
destdir="build/docs/manual">
<xmlcatalog>
<dtd publicId="-//OASIS//DTD DocBook XML V4.2//EN"
location="${tools}/lib/docbook/docbook-xsl/dtds/docbookx.dtd"/>
</xmlcatalog>
</xslt>
And the exception is:
[xslt] Transforming into C:\dev\workspace-wtp-1.0\myProj\build\docs\manual
[xslt] Processing
C:\dev\workspace-wtp-1.0\ricec\docsrc\manual\my-manual.xml to
C:\dev\workspace-wtp-1.0\myProj\build\docs\manual\docsrc\manual\my-manual.html
[xslt] Loading stylesheet
C:\dev\workspace-wtp-1.0\tools\lib\docbook\docbook-xsl\html\chunk.xsl
[xslt] Failed to process
C:\dev\workspace-wtp-1.0\myProj\docsrc\manual\rice-manual.xml
BUILD FAILED
C:\dev\workspace-wtp-1.0\myProj\build.xml:82:
javax.xml.transform.TransformerConfigurationException: Could not load
the translet class 'chunk'.
Any suggestions? we were directly using saxon via ant's java task,
but a proxy server went up, and it was failing on validating documents
because of dtd's not found. ant's xslt task lets us specify the
xmlcatalog to get around this.
thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ant xslt on java 1.5
Posted by Jakob Fix <ja...@gmail.com>.
I use the mtxslt task which allows you to specify the processor to use.
http://mtxslt.sourceforge.net/
On 3/31/06, Robert Koberg <ro...@koberg.com> wrote:
> Mark Lybarger wrote:
> > i'll go ahead and reply to my own post. the "solution" seems to put
> > xalan.jar into the ant lib folder. With it there, the task works,
> > without that jar there, it doesn't work.
> >
> > I tried creating my own xslt task by extending the main task for ant's
> > xslt. I thought this might get me around any classloader issues. I
> > then put xalan.jar into the classpath of my task, but that gave the
> > same results.
> >
> > Maybe I was still running into classloader issues. I'd really like
> > to have a "working", standalone xslt task that allows me to specify
> > the xmlcatalog and
>
> Hi,
>
> I think the problem is with SUN renaming the package that holds the
> xalan classes. It makes XSLTC load first in Ant's code. (You were seeing
> a bug in XSLTC trying to compile the XSL).
>
> Perhaps you could specify the processor attribute on the Xslt task.
> Check out for more info on getting the right Transformer class (starts
> with com.sun. now):
>
> http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html#packageNames
>
> best,
> -Rob
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
--
cheers,
Jakob.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ant xslt on java 1.5
Posted by Robert Koberg <ro...@koberg.com>.
Mark Lybarger wrote:
> i'll go ahead and reply to my own post. the "solution" seems to put
> xalan.jar into the ant lib folder. With it there, the task works,
> without that jar there, it doesn't work.
>
> I tried creating my own xslt task by extending the main task for ant's
> xslt. I thought this might get me around any classloader issues. I
> then put xalan.jar into the classpath of my task, but that gave the
> same results.
>
> Maybe I was still running into classloader issues. I'd really like
> to have a "working", standalone xslt task that allows me to specify
> the xmlcatalog and
Hi,
I think the problem is with SUN renaming the package that holds the
xalan classes. It makes XSLTC load first in Ant's code. (You were seeing
a bug in XSLTC trying to compile the XSL).
Perhaps you could specify the processor attribute on the Xslt task.
Check out for more info on getting the right Transformer class (starts
with com.sun. now):
http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html#packageNames
best,
-Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ant xslt on java 1.5
Posted by Mark Lybarger <ml...@gmail.com>.
i'll go ahead and reply to my own post. the "solution" seems to put
xalan.jar into the ant lib folder. With it there, the task works,
without that jar there, it doesn't work.
I tried creating my own xslt task by extending the main task for ant's
xslt. I thought this might get me around any classloader issues. I
then put xalan.jar into the classpath of my task, but that gave the
same results.
Maybe I was still running into classloader issues. I'd really like
to have a "working", standalone xslt task that allows me to specify
the xmlcatalog and
On 3/30/06, Mark Lybarger <ml...@gmail.com> wrote:
> i'm trying to use ant's xslt task on java 1.5.
> Here's my target call:
> <xslt includes="docsrc/manual/my-manual.xml"
> style="${tools}/lib/docbook/docbook-xsl/html/chunk.xsl"
> destdir="build/docs/manual">
> <xmlcatalog>
> <dtd publicId="-//OASIS//DTD DocBook XML V4.2//EN"
> location="${tools}/lib/docbook/docbook-xsl/dtds/docbookx.dtd"/>
> </xmlcatalog>
> </xslt>
>
> And the exception is:
> [xslt] Transforming into C:\dev\workspace-wtp-1.0\myProj\build\docs\manual
> [xslt] Processing
> C:\dev\workspace-wtp-1.0\ricec\docsrc\manual\my-manual.xml to
> C:\dev\workspace-wtp-1.0\myProj\build\docs\manual\docsrc\manual\my-manual.html
> [xslt] Loading stylesheet
> C:\dev\workspace-wtp-1.0\tools\lib\docbook\docbook-xsl\html\chunk.xsl
> [xslt] Failed to process
> C:\dev\workspace-wtp-1.0\myProj\docsrc\manual\rice-manual.xml
>
> BUILD FAILED
> C:\dev\workspace-wtp-1.0\myProj\build.xml:82:
> javax.xml.transform.TransformerConfigurationException: Could not load
> the translet class 'chunk'.
>
> Any suggestions? we were directly using saxon via ant's java task,
> but a proxy server went up, and it was failing on validating documents
> because of dtd's not found. ant's xslt task lets us specify the
> xmlcatalog to get around this.
>
> thanks!
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org