Hello!

I used dom4j 1.4 with different versions of java (1.3 and 1.4) with no 
problems. Now I want to switch to the new 1.5 platform. I installed JDK 1.5 
picked one of my application and started to resolve the warnings etc. 
Everthing looked fine - but when I start the application I get an error while 
an XSL transformation. An upgrade to dom4j 1.6.1 had no effect.  The error 
stayed:

Unrecognized XSLTC extension 'http://xml.apache.org/xalan/redirect:open

My stylesheet uses the redirect - extension but it caused never problems!

Is this a known problem? Can somebody imagine what causes this problem or  
reproduce it?

And now some Details:

Java version:
>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

My transformation method:
    public Document transformDoc(String xslfile, HashMap parameters) throws 
Exception {
        TransformerFactory factory=TransformerFactory.newInstance();
        Transformer transformer=factory.newTransformer(new 
StreamSource(xslfile));
        
        DocumentSource source=new DocumentSource(doc);
        DocumentResult result=new DocumentResult();
        
        if (parameters != null) {
            Set keys=parameters.keySet();
            Iterator i=keys.iterator();
            while (i.hasNext()) {
                String key=(String)i.next();
                transformer.setParameter(key,parameters.get(key));
            }
        }

        try {
            transformer.transform(source, result);
        } catch (Exception exc) {
            getErrLogMgr().inform("Transformation mit XSL File " + xslfile + " 
schlug fehl: " + exc.getMessage());
            throw exc;
        }
        
        return result.getDocument();
    }

Regards,
Bernhard Donaubauer


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to