This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: problem using Xalan from within a servlet
- To: xsl-list at mulberrytech dot com
- Subject: Re: problem using Xalan from within a servlet
- From: Wendell Piez <wapiez at mulberrytech dot com>
- Date: Sun, 06 Aug 2000 00:33:48 +0100
- Reply-To: xsl-list at mulberrytech dot com
Andre,
> ... What happens is that I get the stylesheet itself
>returned, instead of the transformed output document. I also get a
>warning about a missing version attribute in the stylesheet, although
>the stylesheet has a version attribute. I use Xalan 1.1, by the way. I
This is a bit puzzling. What is the stylesheet document element start tag,
literally?
It should be something like (at least)
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
If the namespace declaration is wrong, that would explain why you get your
stylesheets back (the processor isn't recognizing them as stylesheets).
This is actually a feature, not a bug.
The puzzling part is the bit about having a version attribute, but getting
a complaint about that too.
So what does your stylesheet start tag look like?
Regards,
Wendell Piez
At 01:28 AM 8/4/00 -0500, you wrote:
>I have a servlet which is doing XSL transformations to create the
>presentation view. Everything works just fine in IBM WebSphere. Now I
>tried to get the same testcase running in Tomcat 3.1, but for some
>reason it doesn't work. What happens is that I get the stylesheet itself
>returned, instead of the transformed output document. I also get a
>warning about a missing version attribute in the stylesheet, although
>the stylesheet has a version attribute. I use Xalan 1.1, by the way. I
>wonder what could make the XSL processor spit out the input stylesheet
>and not process anything at all.
>In the classpath of the web application, I have the xalan and xerces jar
>files first and then the xml.jar which comes with Tomcat. Everything
>runs and compiles fine, until I start processing stylesheets.
>
>Has anyone run into this before? Any suggestions?
>
======================================================================
Wendell Piez mailto:wapiez@mulberrytech.com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list