You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marc Dugger <md...@sunsetdirect.com> on 2003/05/29 23:32:30 UTC

xml jelly tags

I'm trying to use jelly xml tags to transform an xml file like so:
 
<j:file name="${basedir}/src/conf/ojb/${package}.xml">
              <x:transform
xslt="${basedir}/etc/resource/torqueSchema2OjbRepository.xsl">
                <j:file
name="${basedir}/etc/schema/${package}-schema.xml"/>
              </x:transform>
            </j:file>
 
However, I'm receiving the following error:
 
BUILD FAILED
Provider for javax.xml.transform.TransformerFactory cannot be found
Total time:  4 seconds
 
I have Xalan listed in my project.xml as a dependency.  What am I
missing?

Re: xml jelly tags

Posted by Siegfried Göschl <si...@it20one.at>.
BTW:  You might have a look at the "Re: class loader problems using 
xalan" mail thread

Sigi

On 29 May 2003 at 16:32, Marc Dugger wrote:

> I'm trying to use jelly xml tags to transform an xml file like so:
> 
> <j:file name="${basedir}/src/conf/ojb/${package}.xml">
>               <x:transform
> xslt="${basedir}/etc/resource/torqueSchema2OjbRepository.xsl">
>                 <j:file
> name="${basedir}/etc/schema/${package}-schema.xml"/>
>               </x:transform>
>             </j:file>
> 
> However, I'm receiving the following error:
> 
> BUILD FAILED
> Provider for javax.xml.transform.TransformerFactory cannot be found
> Total time:  4 seconds
> 
> I have Xalan listed in my project.xml as a dependency.  What am I
> missing?
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: xml jelly tags [solution]

Posted by Marc Dugger <md...@sunsetdirect.com>.
Ultimately, I ended up "borrowing" a section from docbook's plugin.jelly
that goes something like this:

${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.
apache.xalan.processor.TransformerFactoryImpl')}
    <ant:style 
      basedir="${maven.docbook.src}"
      destdir="${genDocs}" extension=".xml"
      style="${plugin.resources}/docbook2document.xsl"
      includes="**/*.xml, **/*.sgml"
    />

> -----Original Message-----
> From: Marc Dugger [mailto:mdugger@sunsetdirect.com]
> Sent: Friday, May 30, 2003 9:08 AM
> To: 'Maven Users List'
> Subject: RE: xml jelly tags
> 
> Sigi, thank you for your reply.  Yes, xml-apis-1.0.b2.jar is listed as
a
> dependency.  I've also added:
> 
> <properties>
>    <classloader>root.maven</classloader>
> </properties>
> 
> ...to both the xml-apis and xalan dependency elements in project.xml.
I
> also put xalan in Maven's lib, but that didn't help either.
> 
> > -----Original Message-----
> > From: Siegfried Göschl [mailto:siegfried.goeschl@it20one.at]
> > Sent: Friday, May 30, 2003 3:00 AM
> > To: Maven Users List
> > Subject: Re: xml jelly tags
> >
> > Hi,
> >
> > I'm not quite sure if it helps but do you have xml-apis in your
> > classpath?!
> >
> > Due to a name quirks xml-apis-1.0.b2.jar is the latest - with xml-
> > apis-2.0.2.jar usage I wasted only time.
> >
> > Cheers,
> >
> > Sigi
> >
> > On 29 May 2003 at 16:32, Marc Dugger wrote:
> >
> > > I'm trying to use jelly xml tags to transform an xml file like so:
> > >
> > > <j:file name="${basedir}/src/conf/ojb/${package}.xml">
> > >               <x:transform
> > > xslt="${basedir}/etc/resource/torqueSchema2OjbRepository.xsl">
> > >                 <j:file
> > > name="${basedir}/etc/schema/${package}-schema.xml"/>
> > >               </x:transform>
> > >             </j:file>
> > >
> > > However, I'm receiving the following error:
> > >
> > > BUILD FAILED
> > > Provider for javax.xml.transform.TransformerFactory cannot be
found
> > > Total time:  4 seconds
> > >
> > > I have Xalan listed in my project.xml as a dependency.  What am I
> > > missing?
> > >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: xml jelly tags

Posted by Marc Dugger <md...@sunsetdirect.com>.
Sigi, thank you for your reply.  Yes, xml-apis-1.0.b2.jar is listed as a
dependency.  I've also added:

<properties>
   <classloader>root.maven</classloader>
</properties>

...to both the xml-apis and xalan dependency elements in project.xml.  I
also put xalan in Maven's lib, but that didn't help either.      

> -----Original Message-----
> From: Siegfried Göschl [mailto:siegfried.goeschl@it20one.at]
> Sent: Friday, May 30, 2003 3:00 AM
> To: Maven Users List
> Subject: Re: xml jelly tags
> 
> Hi,
> 
> I'm not quite sure if it helps but do you have xml-apis in your
> classpath?!
> 
> Due to a name quirks xml-apis-1.0.b2.jar is the latest - with xml-
> apis-2.0.2.jar usage I wasted only time.
> 
> Cheers,
> 
> Sigi
> 
> On 29 May 2003 at 16:32, Marc Dugger wrote:
> 
> > I'm trying to use jelly xml tags to transform an xml file like so:
> >
> > <j:file name="${basedir}/src/conf/ojb/${package}.xml">
> >               <x:transform
> > xslt="${basedir}/etc/resource/torqueSchema2OjbRepository.xsl">
> >                 <j:file
> > name="${basedir}/etc/schema/${package}-schema.xml"/>
> >               </x:transform>
> >             </j:file>
> >
> > However, I'm receiving the following error:
> >
> > BUILD FAILED
> > Provider for javax.xml.transform.TransformerFactory cannot be found
> > Total time:  4 seconds
> >
> > I have Xalan listed in my project.xml as a dependency.  What am I
> > missing?
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xml jelly tags

Posted by Siegfried Göschl <si...@it20one.at>.
Hi,

I'm not quite sure if it helps but do you have xml-apis in your 
classpath?! 

Due to a name quirks xml-apis-1.0.b2.jar is the latest - with xml-
apis-2.0.2.jar usage I wasted only time.

Cheers,

Sigi

On 29 May 2003 at 16:32, Marc Dugger wrote:

> I'm trying to use jelly xml tags to transform an xml file like so:
> 
> <j:file name="${basedir}/src/conf/ojb/${package}.xml">
>               <x:transform
> xslt="${basedir}/etc/resource/torqueSchema2OjbRepository.xsl">
>                 <j:file
> name="${basedir}/etc/schema/${package}-schema.xml"/>
>               </x:transform>
>             </j:file>
> 
> However, I'm receiving the following error:
> 
> BUILD FAILED
> Provider for javax.xml.transform.TransformerFactory cannot be found
> Total time:  4 seconds
> 
> I have Xalan listed in my project.xml as a dependency.  What am I
> missing?
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org