-----Original Message-----
From: Michael Kay [mailto:mhk@mhk.me.uk]
Sent: 16 April 2003 08:37
To: 'Keerthi_Venkataraman'
Cc: 'saxon-help@lists.sourceforge.net'
Subject: RE: [saxon] Error while Switching to XERCES parser

Please don't take discussions off-list. It means there is no archive, and no chance of anyone else helping with the problem or benefiting from its solution.
 
The latest message you report
 
     The encoding "ISO-8859-2" is not supported
 
is different from previous ones:
 
     unsupported text encoding (found "ISO-8859-2")
 
which shows that you are using a different parser. The "unsupported text encoding" message comes from AElfred, so the other one must come from Xerces. Also, the latest output you have given (unlike previous outputs) confirms that org.apache.xerces.parsers.SAXParser is being loaded.
 
So you are now succeeding in running Xerces. Getting Xerces to parse your XML document is not really a Saxon problem. I have tried Xerces with encoding="ISO-8859-2" and it works for me. I am using Xerces version 2.2.0. Try getting Xerces to parse the document on its own (without involving Saxon), and if you still have problems, use the Xerces list at apache.org to get help. 
 

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com

 
 
-----Original Message-----
From: Keerthi_Venkataraman [mailto:Keerthi_Venkataraman@satyam.com]
Sent: 16 April 2003 06:53
To: Michael Kay
Subject: RE: [saxon] Error while Switching to XERCES parser

This is my command line and the error that I am getting.

 

 

E:\SupplyWeb6.0.15\BPO>java com.icl.saxon.StyleSheet -t -x org.apache.xerces.parsers.SAXParser -o bpo_final.xml bpo_inter4.xml poblanket-xsl6.0.15EE.xsl

SAXON 6.5.2 from Michael Kay

Java version 1.3.0_02

Loading org.apache.xerces.parsers.SAXParser

Preparation time: 844 milliseconds

Processing file:/E:/SupplyWeb6.0.15/BPO/bpo_inter4.xml

Building tree for file:/E:/SupplyWeb6.0.15/BPO/bpo_inter4.xml using class com.icl.saxon.tinytree.TinyBuilder

Error on line 0 column 0 of null:

  Error reported by XML parser: The encoding "ISO-8859-2" is not supported.

 

 

 

-----Original Message-----
From: Michael Kay [mailto:mhk@mhk.me.uk]
Sent
:
Tuesday, April 15, 2003 8:33 PM
To: Keerthi_Venkataraman
Subject: RE: [saxon] Error while Switching to XERCES parser

 

With a command line like this:

 

java -jar c:\MyJava\saxon.jar -t -x org.apache.crimson.parser.XMLReaderImpl stdxmlfile.xml seq013.xsl

 

the output you see should look something like this:

 

SAXON 6.5.2 from Michael Kay
Java version 1.4.0
Loading org.apache.crimson.parser.XMLReaderImpl
Preparation time: 601 milliseconds
Processing file:/c:/MyJava/tests/testsuite/seq/stdxmlfile.xml
Building tree for file:/c:/MyJava/tests/testsuite/seq/stdxmlfile.xml using class com.icl.saxon.tinytree.TinyBuilder
Tree built in 50 milliseconds
Error at xsl:sequence on line 9 of file:/c:/MyJava/tests/testsuite/seq/seq013.xsl:
  Unknown XSLT element: sequence
Transformation failed: Run-time errors were reported

 

 

You haven't shown us your command line.

 

Michael Kay

-----Original Message-----
From: Keerthi_Venkataraman [mailto:Keerthi_Venkataraman@satyam.com]
Sent:
15 April 2003 13:11
To: Michael Kay
Subject: RE: [saxon] Error while Switching to XERCES parser

I did try the -t option and this is what I am getting

 

 

Building tree for file:/E:/SupplyWeb6.0.15/BPO/bpo_inter4.xml using class com.icl.saxon.tinytree.TinyBuilder

Error on line 1 column 0 of file:/E:/SupplyWeb6.0.15/BPO/bpo_inter4.xml:

  Error reported by XML parser: unsupported text encoding (found "ISO-8859-2")

Transformation failed: Run-time errors were reported

 

I am using the -x option.

How can I check  if saxon is using the xerces parser?

 

 

Rgds

Keerthi