errors when using sources.zip
Added by Anonymous over 19 years ago
Legacy ID: #3104698 Legacy Poster: jonwilliford (jonwilliford)
I've made a few modifications to the TraxExamples.java in order to do xslt2 transformations through a website interface in order that the server wouldn't have to save the source files in order to do the transformations. However, I've been getting errors saying that it can not compile the stylesheet, even though using the saxon8.jar command line utility gave no such errors. For example, one of the errors said "Syntax error in '$num_level_indicators eq 0' ". It also gave a warning saying "Illegal attribute 'input-type-annotations' ", while the command line utility gives no such warning. Do you have an idea of what might be causing these differences? Could what Marc said about the source in source.zip being different then the jar be true? I've been using the saxonb8-4 release. Thanks! Jonathan
Replies (3)
Please register to reply
RE: errors when using sources.zip - Added by Anonymous over 19 years ago
Legacy ID: #3105002 Legacy Poster: Michael Kay (mhkay)
I suspect the error is that your rebuilt JAR file doesn't contain a file named META-INF/services/javax.xml.transform.TransformerFactory whose content is the single line net.sf.saxon.TransformerFactoryImpl As a result you are running the transformation using Xalan rather than Saxon. Michael Kay
RE: errors when using sources.zip - Added by Anonymous over 19 years ago
Legacy ID: #3105005 Legacy Poster: Michael Kay (mhkay)
Reading your post again, you refer to the sources.zip file (actually source.zip), but you don't say that you've rebuilt saxon8.jar. If you haven't rebuilt the JAR, then the content of source.zip is irrelevant. The only thing you say that you've changed is TraxExamples.java - if that's the case, then that's where to look for the error. But it still seems likely that you're loading Xalan rather than Saxon - try adding the line <xsl:comment>Transformed using <xsl:value-of select="system-property('xsl:vendor')"/></xsl:comment> to your stylesheet to confirm this. Michael Kay
RE: errors when using sources.zip - Added by Anonymous over 19 years ago
Legacy ID: #3106723 Legacy Poster: jonwilliford (jonwilliford)
Thanks for your response. I believe you are right with it using Xalan instead of Saxon. I'm not very familar with Jar files or with the META-INF folder. I've been compiling most of the source.zip files as a Jar file, and being a novice I've just been chucking in source files from other projects in order to get the files to compile :-). Anyways, I've got a lot more to learn about jar files. Thanks again!
Please register to reply