xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@apache.org>
Subject webmaster - forward request (fwd)
Date Tue, 23 Nov 1999 11:53:15 GMT

---------- Forwarded message ----------
Date: Tue, 23 Nov 1999 12:15:32 +0100
From: Babak Kunze <bk@feroxsys.de>
To: webmaster@xml.apache.org
Subject: webmaster - forward request

Dear webmaster,

i dont know where to post this bug-report, there is no reference on the
website telling me this secret. Please forward the following message to
the adressee.
Thanks in advance.

B. Kunze

--------------------------------------------------------------------------------------------------------------

When using Xalan with Xerces and the Liaison
"org.apache.xalan.xpath.xml4j2dom.XML4JLiaison4dom" the following error
occurs:

            XSLTProcessor processor =
XSLTProcessorFactory.getProcessor("org.apache.xalan.xpath.xml4j2dom.XML4JLiaison4dom",
true);

            processor.process(new XSLTInputSource("something.xml"),
              new XSLTInputSource("something.xsl"),
              new XSLTResultTarget(new PrintWriter(System.out)));

org.apache.xalan.xslt.XSLProcessorException: ERROR0050
    at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1499)
    at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:839)

    at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:561)
    at Lookup.main(Lookup.java:36)
---------
http://ibm.com/xml/features/dom/defer-node-expansion
    at
org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java:1433)
    at
org.apache.xerces.parsers.DOMParser.setFeature(DOMParser.java:598)
    at
org.apache.xalan.xpath.xml4j2dom.XML4JLiaison4dom.parse(XML4JLiaison4dom.java:245)

    at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:825)

    at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:561)
    at Lookup.main(Lookup.java:36)

The error is in the file :
    org/apache/xalan/xpath/xml4j2dom/XML4JLiaison4dom.java Line 245:

    Xerces does not recognize the following feature-url:

domParser.setFeature("http://ibm.com/xml/features/dom/defer-node-expansion",
false);

    Instead there should be the following line, fixing the problem:

domParser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion",
false);


############################################################################

When trying to run Xalan on a machine with german Locale, the following
exception is thrown:

java.util.MissingResourceException: can't find resource for
org.apache.xalan.xslt.res.XSLTErrorResources_de_de_DE
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:350)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:297)
    at
org.apache.xalan.xpath.xml.XSLMessages.createMessage(XSLMessages.java:143)

    at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1477)
    at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:839)

    at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:561)
    at Lookup.<init>(Lookup.java:22)
    at Lookup.main(Lookup.java:36)
    at symantec.tools.debug.MainThread.run(Agent.java:48)

Just copy org.apache.xalan.xslt.res.XSLTErrorResources_en to
org.apache.xalan.xslt.res.XSLTErrorResources_de_de_DE,
rename the java class name and compile. It should then work with the
english
error-output!

Regards.

Babak Kunze
FEROX SYSTEMS GmbH


Mime
View raw message