You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Rob Leachman <qu...@bitblaster.com> on 2001/09/30 04:10:51 UTC

trouble building xdocs

Hello,

I'm having trouble building the xdocs target... the rest of CVS
compiled fine... what am I missing? I did try some stuff but
no luck... Grr frustrated here ;)

TIA!


$ ant docs
Buildfile: build.xml

check_for_jdom:

docs-prepare-error:

docs:
   [anakia] Transforming into: /home/rob/projects/jakarta-turbine-2/docs
      [anakia] Error: org.jdom.JDOMException: Error in building: 
      SAX2 driver class org.apache.xerces.parsers.SAXParser not found

      BUILD FAILED

      /home/rob/projects/jakarta-turbine-2/build/build.xml:365: 
      org.jdom.JDOMException: Error in building: SAX2 driver class 
      org.apache.xerces.parsers.SAXParser not found

      Total time: 3 seconds
$ 

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


Re: trouble building xdocs

Posted by Rob Leachman <qu...@bitblaster.com>.
Yes! Thanks Kurt, worked like a charm. I found a xerces.jar and Ant 1.4
did the job successfully.

On Sun, 30 Sep 2001 02:07:06 -0400
Kurt Schrader <ks...@engin.umich.edu> wrote:

> This is a problem with Ant 1.4.  I believe that the solution for now is 
> to put the xerces.jar into $ANT_HOME/lib and then build the docs or use 
> Ant 1.3 instead.
> 
> On Saturday, September 29, 2001, at 10:10 PM, Rob Leachman wrote:
> 
> > Hello,
> >
> > I'm having trouble building the xdocs target... the rest of CVS
> > compiled fine... what am I missing? I did try some stuff but
> > no luck... Grr frustrated here ;)
> >    [anakia] Transforming into: /home/rob/projects/jakarta-turbine-2/docs
> >       [anakia] Error: org.jdom.JDOMException: Error in building:
> >       SAX2 driver class org.apache.xerces.parsers.SAXParser not found

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


RE: XSLTService takes parameter

Posted by Ming Fai <mi...@hongkong.com>.
No, it's not what I mean. I'm sorry that I didn't explain it clear enough.

For XSL, it can be declared to accept parameter. (not parameter to XSLT
services but 'parameter for the transformation')
	e.g. <xsl:param name="parametername">parametervalue</xsl:param>
In java, it's implemented by using the setParameter method of a Transformer.

I've checked the API doc and source code of the TurbineXSLTService.java and
the class doesn't implement that feature. So, I'm now modifying the java and
I'll send you the updated source code once I've finished testing.

Regards,
mingfai



-----Original Message-----
From: Leon Messerschmidt [mailto:leon@opticode.co.za]
Sent: Monday, October 01, 2001 5:24 PM
To: turbine-user@jakarta.apache.org
Subject: Re: XSLTService takes parameter


Yes,  the XSLTService takes the xsl name of the first parameter.  The actual
.xsl file is loaded from the xsl directory specified in the TR.properties.

The .xsl file is compiled into a memory format with Xalan.  If caching is
switched on (see the TR.properties) the compiled version will be used for
all subsequent transformations.  This improves performance a lot.

~ Leon


----- Original Message -----
From: "Ming Fai" <mi...@hongkong.com>
To: <tu...@jakarta.apache.org>
Sent: Monday, October 01, 2001 10:15 AM
Subject: XSLTService takes parameter


> Could XSLTService take a parameter for XSLT during transformation?  I use
> jsp and my page can create a html string, but my requirement is to pass in
a
> parameter to the myXSL.xsl stylesheet. Does XSLTService support this
> function?
>
> <%@ page
>
import="java.io.File,java.io.FileReader,org.apache.turbine.services.xslt.Tur
> bineXSLT"%>
> <%
>  File f = new File("../myXML.xml");    file://make a file obj for checking
file
> existence, i.e. get f.exists()
>  FileReader fr = new FileReader(f) ;
> %>
> <html>
> <body>
> <%=TurbineXSLT.transform("myXSL.xsl",fr)%>
> </body>
> </html>
>
> regards,
> mingfai
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>


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




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


Re: XSLTService takes parameter

Posted by Leon Messerschmidt <le...@opticode.co.za>.
Yes,  the XSLTService takes the xsl name of the first parameter.  The actual
.xsl file is loaded from the xsl directory specified in the TR.properties.

The .xsl file is compiled into a memory format with Xalan.  If caching is
switched on (see the TR.properties) the compiled version will be used for
all subsequent transformations.  This improves performance a lot.

~ Leon


----- Original Message -----
From: "Ming Fai" <mi...@hongkong.com>
To: <tu...@jakarta.apache.org>
Sent: Monday, October 01, 2001 10:15 AM
Subject: XSLTService takes parameter


> Could XSLTService take a parameter for XSLT during transformation?  I use
> jsp and my page can create a html string, but my requirement is to pass in
a
> parameter to the myXSL.xsl stylesheet. Does XSLTService support this
> function?
>
> <%@ page
>
import="java.io.File,java.io.FileReader,org.apache.turbine.services.xslt.Tur
> bineXSLT"%>
> <%
>  File f = new File("../myXML.xml");    file://make a file obj for checking
file
> existence, i.e. get f.exists()
>  FileReader fr = new FileReader(f) ;
> %>
> <html>
> <body>
> <%=TurbineXSLT.transform("myXSL.xsl",fr)%>
> </body>
> </html>
>
> regards,
> mingfai
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>


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


Re: XSLTService takes parameter

Posted by Ian Lim <ma...@ematic.com>.
Hi

In looking at the extract of this code, how come not implementing
a pull tool. I implemented a tool which takes in a xsl file and the xml
file is defined in the TR.props.

Regards
Ian Lim

----- Original Message -----
From: "Ming Fai" <mi...@hongkong.com>
To: <tu...@jakarta.apache.org>
Sent: Monday, October 01, 2001 04:15 PM
Subject: XSLTService takes parameter


> Could XSLTService take a parameter for XSLT during transformation?  I use
> jsp and my page can create a html string, but my requirement is to pass in
a
> parameter to the myXSL.xsl stylesheet. Does XSLTService support this
> function?
>
> <%@ page
>
import="java.io.File,java.io.FileReader,org.apache.turbine.services.xslt.Tur
> bineXSLT"%>
> <%
>  File f = new File("../myXML.xml");    //make a file obj for checking file
> existence, i.e. get f.exists()
>  FileReader fr = new FileReader(f) ;
> %>
> <html>
> <body>
> <%=TurbineXSLT.transform("myXSL.xsl",fr)%>
> </body>
> </html>
>
> regards,
> mingfai
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


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


XSLTService takes parameter

Posted by Ming Fai <mi...@hongkong.com>.
Could XSLTService take a parameter for XSLT during transformation?  I use
jsp and my page can create a html string, but my requirement is to pass in a
parameter to the myXSL.xsl stylesheet. Does XSLTService support this
function?

<%@ page
import="java.io.File,java.io.FileReader,org.apache.turbine.services.xslt.Tur
bineXSLT"%>
<%
 File f = new File("../myXML.xml");    //make a file obj for checking file
existence, i.e. get f.exists()
 FileReader fr = new FileReader(f) ;
%>
<html>
<body>
<%=TurbineXSLT.transform("myXSL.xsl",fr)%>
</body>
</html>

regards,
mingfai


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


Re: trouble building xdocs

Posted by Kurt Schrader <ks...@engin.umich.edu>.
This is a problem with Ant 1.4.  I believe that the solution for now is 
to put the xerces.jar into $ANT_HOME/lib and then build the docs or use 
Ant 1.3 instead.

On Saturday, September 29, 2001, at 10:10 PM, Rob Leachman wrote:

> Hello,
>
> I'm having trouble building the xdocs target... the rest of CVS
> compiled fine... what am I missing? I did try some stuff but
> no luck... Grr frustrated here ;)
>
> TIA!
>
>
> $ ant docs
> Buildfile: build.xml
>
> check_for_jdom:
>
> docs-prepare-error:
>
> docs:
>    [anakia] Transforming into: /home/rob/projects/jakarta-turbine-2/docs
>       [anakia] Error: org.jdom.JDOMException: Error in building:
>       SAX2 driver class org.apache.xerces.parsers.SAXParser not found
>
>       BUILD FAILED
>
>       /home/rob/projects/jakarta-turbine-2/build/build.xml:365:
>       org.jdom.JDOMException: Error in building: SAX2 driver class
>       org.apache.xerces.parsers.SAXParser not found
>
>       Total time: 3 seconds
> $
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>


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