Re: Saxon Frustrations

Subject: Re: Saxon Frustrations
From: Carlos Araya <elrond@xxxxxxxxxxxxxxxx>
Date: Wed, 21 Jun 2000 10:35:58 -0700 (PDT)
Andrew:

Please see my comments inline.

Carlos

On Wed, 21 Jun 2000 AndrewWatt2000@xxxxxxx wrote:
|
|Hi,
|
|Since I recently purchased Michael Kay's book on XSLT I decided to have a 
|first dabble with Saxon. However, to cut a long story short, it won't work. 
|At present I am trying to get Saxon to handle the transformation of the 
|Hello.xml example on p.17 and on of Michael Kay's book. Hardly high powered 
|stuff. :)

First things first. Did you put saxon.jar and your saxon directory in your
CLASSPATH environmental variables? If you don't do that, then you would
have to declare the classpath at runtime and that's a royal pain for me. 

Also,  what JDK are you using? I know for a fact that Saxon will work with
1.1 and 1.2 versions of the JDK. When I started I was using Kaffe that was
based ona 1.0.5 version of the JDK and it ran without major problems. 
|
|Saxon produces nothing - including HTML files of length zero. No HTML on 
|screen when run with just hello.xml and hello.xsl. And zero length HTML files 
|when I attempt to produce them.

What command are you using to run Saxon? What works for me is:

java com.icl.saxon.StyleSheet -t hello.xml hello.xsl
|
|When I used the XML file which included the stylesheet reference the page 
|title of the generated HTML page appeared correctly in Internet Explorer but 
|the content of the <greeting> tag was nowhere to be seen.
|
|I have checked for all the possible errors I can think of. It was 
|straightforward to get the xsl to transform the  XML using e.g. XMLWriter. My 
|guess is that the problem with using Saxon is some incompatibility internally 
|somewhere between versions. The problem may hinge on namespace declaration. 
|Saxon seems to insist on "xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
|which is supposedly newer than the mapping which XMLWriter (1.21) uses - 
|"http://www.w3.org/TR/WD-xsl";. Yet when I use Saxon's version of the mapping 
|absolutely nothing is produced.

http://www.w3.org/TR/WD-xsl is an old namespace that was supported by
earlier versions of IE. As of preview technology 3 they all should be
supporting "http://www.w3.org/1999/XSL/Transform as the xsl: namespace. I
haven't used much IE XML so I may be wrong?
|
|I am using Saxon 5.3.2 (which doesn't work). The transformation which did 
|work used XMLWriter 1.21, IE5.0 with the May 2000 issue of MSXML. I wonder 
|whether upgrading to IE5.5 might solve some of my problems but would that 
|also solve the non-functionality of Saxon on this trivial piece of code?

Are you using instant saxon? The examples above are for the full version

--
Carlos E. Araya
WebCT Project Coordinator - New Media Specialist
Alquist Center for Instrucctional Development
San Jose State University
1 Washington Square
San Jose, Ca 95192-0026

email	: araya@xxxxxxxx (prefered)		| Phone (408) 924 2859
	  elrond@xxxxxxxxxxxxxxxx		| Pager (408) 308 1793
Web	: http://www.sjsu.edu/depts/alquist/	| Fax   (408) 924 2437
	  http://valinor.sjsu.edu/~elrond/	

finger elrond@xxxxxxxxxxxxxxxx for PGP key
-- 
Note: you are currently using an unregistered evaluation copy of your 
life. Register now for the full-featured version and cheat codes!         



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread