Unless you set up a servlet or JSP to process the xml file using a 
specified xsl file by explicitly invoking Xalan on it, all that will happen 
is that the xml file will be served to your browser and the transformation, 
if it is going to happen, will happen on the client side.

Actually, both IE5.5+ and Mozilla should be able to transform it on the 
client side, but this has nothing at all to do with Tomcat.  tomcat is just 
serving both files as static content.  Oh, keep in mind that the server has 
to serve up xml and xsl files as "text/xml", otherwise no transformation 
will take place (at least in Mozilla which is strict, as it should be, 
about stuff like that).

Jake

At 09:55 PM 8/13/2002 -0400, you wrote:
>On Tue, 13 Aug 2002 20:33:38 -0500
>"Jacob Hookom" <[EMAIL PROTECTED]> wrote:
>
> > You might want to look at installing JSTL under the Taglibs "Standard"
> >
> > It provides simple xslt transformation by selecting a file as a source
> > and a file as the xsl document, the download includes deployable wars
> > that demonstrate this functionality.
> >
> > -Jake
>
>Thanks, I'll have a look.  But was my original thinking wrong?  Should I 
>expect tomcat to just perform the transform because I've set my xml/xsl up 
>correctly, is there something extra I need to do, or is it just not 
>designed to do that elegantly?
>
>Say hi to Water St. for me.
>
>
> > | -----Original Message-----
> > | From: Tod Thomas [mailto:[EMAIL PROTECTED]]
> > | Sent: Tuesday, August 13, 2002 7:31 PM
> > | To: [EMAIL PROTECTED]
> > | Subject: Can this be done...?
> > |
> > | I want to use tomcat on my machine to test XSLT.
> > |
> > | I have a directory called Tomcat/webapps/testxslt.  There I have
> > placed my
> > | test.xml and test.xsl files.  I have copied xalan.jar, xml-apis.jar,
> > and
> > | xerces-Impl.jar into my $JAVA_HOME/jre/lib/endorsed directory.  Using
> > | command line Xalan I have validated that both files are well formed
> > and
> > | work as expected.  Using a browser I can get to both the xml and xsl
> > pages
> > | and view their contents, but the transformation never occurs.  I do
> > have
> > | an href in the xml pointing to the xsl file.
> > |
> > | Am I wrong in thinking I can do this?  Is there maybe something I need
> > to
> > | do to one of the configuration files to make this happen?  I really
> > don't
> > | need the functionality of Cocoon yet so this scaled down testing
> > platform
> > | using Tomcat only would serve me well.  Any suggestions?
> > |
> > | Thanks in advance.
> > |
> > | --
> > | To unsubscribe, e-mail:   <mailto:tomcat-user-> | 
> [EMAIL PROTECTED]>
> > | For additional commands, e-mail: <mailto:tomcat-user-> | 
> [EMAIL PROTECTED]>
> > |
> > | ---
> > | Incoming mail is certified Virus Free.
> > | Checked by AVG anti-virus system (http://www.grisoft.com).
> > | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
> > |
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
> >
> >
> >
> > --
> > To unsubscribe, 
> e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> >
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to