You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jim Urban <ji...@netsteps.net> on 2001/06/25 20:20:30 UTC

Problem with Xalan 2.1.0

I installed Xalan 2.1.0  When I try to run a sample XML file I get the
following error:

XSLT Error (javax.xml.transform.TransformerConfigurationException):
Namespace not supported by SAXParser

My command line is:  java org.apache.xalan.xslt.Process -IN foo.xml -OUT
foo.out -XSL foo.xsl

I am running with JDK 1.3 on Win NT 4.0
My classpath includes:
D:\xalan-j_2_1_0\bin\xalan.jar;D:\xalan-j_2_1_0\bin\xerces.jar;

My XML file looks like this:

<?xml version="1.0"?>
<doc>Hello</doc>


My xsl file looks like this:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="doc">
<out><xsl:value-of select="."/></out>
</xsl:template>
</xsl:stylesheet>


What am I doing wrong?  
BTW:  These files work with Xalan 1.2.2 without any errors.

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


Entity and Entity Reference

Posted by "Ted X. Toth" <te...@elegiant.com>.
I am generating a DOM in java code (I've tried Crimson/JAXP and dom4j) on
which I run a transformation (XSLT) to generate HTML. The problem is that
entity references have their '&' converted to '&amp;' in the result
document. I don't think that this should be happening. Has anyone worked
through this issue? I am make a bad assumption, that entity reference should
be altered?

Ted X. Toth
Elegiant, Inc.
8705 Shoal Creek Blvd., Suite 202
Austin, TX 78757
Phone: 512.206.0660
Fax: 512.206.0003