Re: XML parser: old version

2001-06-22 Thread Stan Devitt

Correct.   Putting xerces.jar and xalan.jar at the start of the class path
seems to work fine.  

Stan D.

- Original Message - 
From: Sam Newman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 4:43 AM
Subject: Re: XML parser: old version


 Someone said he managed to get Xerces work without too mich bother. He
 simply wedited the tomcat.bat/tomcat.sh startup script to put the xerces xml
 parser in the classpath instead of the standard one. My only guess as to why
 xerces is not used by default is Tomcat's history as being Suns reference
 implementation?
 
 sam
 - Original Message -
 From: Sergey V. Udaltsov [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 22, 2001 9:31 AM
 Subject: XML parser: old version
 
 
  Hi all
 
  With Tomcat 3.2.2 RPMS, I got some XML parser.
  I suspect it is sun's JAXP implementation 1.0. It DOES NOT support
  namespaces (I found it from the error messages:) so it is not possible
  to use XSL in JSPs/Beans/servlets.
 
  Will it be any problem to use JAXP 1.1? Or Xerces? What is the current
  policy of using XML parsers in tomcat? Why tomcat does not use Xerces
  having the same Apache licence?
 
  Thanks for any comments
 
  Sergey
 
 
 
 




Re: xalan ApplyXSL sample servlet fails

2001-05-30 Thread Stan Devitt

The ApplyXSLT example also works under tomcat 3.2.2,  the crucial
thing being to include xalan.jar and xerces.jar in the CLASSPATH
(and to exclude jaxp.jar and parser.jar.)

Notes:   

1.  relative paths for dtd's etc. are relative to the webapps directory
rather than the servlet context  (both 3.2.1 and 3.2.2).  

2.  With debug=true,  3.2.2 replaces special chars by entities 
( e.g.,  by %lt;) in error data sent by ApplyXSLT to the browser, 
whereas 3.2.1 left the html tags alone and displayed the 
errors properly.

3.  I am using  jdk1.3.1, xerces 1.2.3, and xalan 2.0.0 on Windows 2000.

Stan.

- Original Message - 
From: niv maman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 29, 2001 5:23 PM
Subject: Re: xalan ApplyXSL sample servlet fails


 hi .
 did u check it with the new release of tomcat 3.2.2?





xalan ApplyXSL sample servlet fails

2001-05-29 Thread Stan Devitt

Any pointers to additional info, a working example, 
or  direct help in resolving the following would 
be most appreciated.

Stan Devitt

==
I am attempting to run the servlet example that is part of
the xalan1.2.2  zip file - specifically with DefaultApplyXSL,
whose purpose is to apply xslt transformations.

I am using tomcat 3.2.1. (more details below)

I have installed the servlet in a Test context 
and a sample xml and style file tested independently.

I successfully link to the servlet using:

http://localhost:8080/Test/servlet/DefaultApplyXSL?
debug=trueURL=/Test/main.xmlxslURL=/Test/styles/main.xsl

but the transformation fails in the process method in ApplyXSL during

xslprocessor.process(xmlSource, xslSource, outBuffer);

The debug response indicates that
a) it is finding the servlet,
b) it is finding the xml file and its style file,  

however, a SAX exception occurs while it is being processed to
generate html output - the log shows

SystemId Unknown; Line 1; Column 1; SystemId Unknown; Line 0; Column 0; 
Exception is org.xml.sax.SAX Exception

Additional Notes:

1.  The xml and style file has been validated and successfully 
transformed using both xt and xalan in command line mode.

2.  I am using tomcat 3.2.1, together with jdk1.3.1,
xerces 1.2.3 and xalan 1.2.2 on Windows 2000.

3.  There is no DOCTYPE in the xml file, nor is there a
style sheet processing instruction.

4.  The xalan.jar and xerces.jar files are at the start of the
class path.

Thanks in advance.





Re: xalan ApplyXSL sample servlet fails

2001-05-29 Thread Stan Devitt

I got it (or rather, DefaultApplyXSLT) to work.  The resolution was:

1.  Use xalan-j_2_0_0, and the servlet example
from there which uses ApplyXSLT 

2.  Clean up my careless classpath usage of jar files leading
instead with xalan.jar and xerces.jar from the xalan2_0_0
distribution.

3.  Be sure to get the right path to the servlet as the
new servlet example is now in a servlet package instead of 
the top level of the context.)

(I am now using tomcat 3.2.1, together with jdk1.3.1,
xerces 1.2.3 and xalan 2.0.0 on Windows 2000.)

Thanks.

Stan.

- Original Message - 
From: Chris McNeilly [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 29, 2001 8:46 AM
Subject: RE: xalan ApplyXSL sample servlet fails


 Funny you should ask.  I had (possibly) a very similar problem last
 week.  After combing through maillists etc, I found a reference
 suggesting that there was a conflict with the xerces xml parser and the
 xml parser included with tomcat.  It suggested removing parser.jar and
 jaxp.jar from the classpath in the tomcat startup scripts (tomcat.bat
 for me).  That worked for me.  I've only been playing with it for a day
 or two, but it doesn't seem to break tomcat and now my xalan-based
 servlets function.
 
 Chris