[xsl] Trying to find a working XSLT processor

Subject: [xsl] Trying to find a working XSLT processor
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 Sep 2001 11:29:23 -0400
Can someone help me find an XSLT processor that works with the following XML?

I have been successfully using XT for some time now, but I now would like to use key() and I cannot find an XSLT processor that works with the example below. I have reduced my stylesheets to this simple test that works just fine with XT, but the report below shows Saxon, Oracle, and Xalan all failing on the test. I've also tried some commercial XSLT processors to no avail.

If someone has another command-line processor than the ones listed above, could they please try the test and let me know if there is one that works? One additional requirement is that I need to be able to pass parameters to the XSLT processor on the command line, so I cannot use a DLL-only solution.

Thanks for any help you can be!

................ Ken

p.s. and "no, I cannot change my XML" as I believe this is properly constructed XML and I use dozens of configuration parameters in this fashion in my slide show document model ... it is just that none of the other processors I've tried support it

X:\samp>..\prog\xslxt.bat test.xml test.xsl test.out
Invoking XT executable....

X:\samp>type test.out
<?xml version="1.0" encoding="utf-8"?>
<test><test attr="hello world"/></test>
X:\samp>..\prog\xslsaxon.bat test.xml test.xsl test.out
Invoking Saxon executable....
Error on line 2 column 21 of file:/X:/samp/test.ent:
  Error reported by XML parser: PE reference within decl in internal subset.
Transformation failed: run-time errors were reported

X:\samp>..\prog\xsljavaoracle.bat test.xml test.xsl test.out
Invoking Oracle XML parser jar....

file:/X:/samp/test.ent<Line 2, Column 3>: XML-0192: (Fatal Error) Unexpected tex
t in DTD.
Error occurred while parsing test.xml: Unexpected text in DTD.

X:\samp>..\prog\xsljavaxalan.bat test.xml test.xsl test.out
Invoking Xalan/Xerces jar: "test.xml" with "test.xsl" to "test.out"

XSLT Error (javax.xml.transform.TransformerException): TRaX Transform Throwable



<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";

<xsl:template match="/">
  <xsl:copy-of select="."/>



<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE test
<!ENTITY % test-include "INCLUDE">

<!ENTITY % test-ent SYSTEM "test.ent">


<!ENTITY % test-include "IGNORE">
  <!ENTITY % test "hello world">
<!ENTITY % test "goodbye">

<!ENTITY test '<test attr="%test;"/>'>

-- Training Blitz: 3-days XSLT/XPath, 2-days XSLFO in Ottawa 2001-10-01/05

G. Ken Holman                      mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.               http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999   (Fax:-0995)
Web site:     XSL/XML/DSSSL/SGML/OmniMark services, training, products.
Book:  Practical Transformation Using XSLT and XPath ISBN 1-894049-06-3
Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html
Next public instructor-led training:      2001-09-18,09-19,10-01,10-04,
-                                         10-22,11-05,12-09,12-10,02-02

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

Current Thread