Hi,

I am experiencing a problem with exporting XML from jackrabbit (using the session.exportSystemView() method).

The export works fine if I use the JDK internal copy of the xalan classes. The JDK version is 1.5.0_07-b03.

If I include a recent xalan jar on the classpath (tested with 2.7.0 and 2.7.1) the xml produced is not valid.

With no xalan on the classpath the XML starts with a node that looks like this:

 <sv:node xmlns:mix="http://www.jcp.org/jcr/mix/1.0";
         xmlns:nt="http://www.jcp.org/jcr/nt/1.0";
         xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions";
         xmlns:fn="http://www.w3.org/2005/xpath-functions";
         xmlns:xs="http://www.w3.org/2001/XMLSchema";
         xmlns:sv="http://www.jcp.org/jcr/sv/1.0";
         xmlns:rep="internal"
         xmlns:jcr="http://www.jcp.org/jcr/1.0";
         sv:name="subnode3">

With xalan on the classpath, the XML starts with a node that looks like this:

 <sv:node xmlns:mix="http://www.jcp.org/jcr/mix/1.0";
         xmlns:nt="http://www.jcp.org/jcr/nt/1.0";
         xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions";
         xmlns:fn="http://www.w3.org/2005/xpath-functions";
         xmlns:xs="http://www.w3.org/2001/XMLSchema";
         xmlns:sv="http://www.jcp.org/jcr/sv/1.0";
         xmlns:rep="internal"
         xmlns:jcr="http://www.jcp.org/jcr/1.0";
         sv:name="subnode3"
         xmlns:mix="http://www.jcp.org/jcr/mix/1.0";
         xmlns:nt="http://www.jcp.org/jcr/nt/1.0";
         xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions";
         xmlns:fn="http://www.w3.org/2005/xpath-functions";
         xmlns:xs="http://www.w3.org/2001/XMLSchema";
         xmlns:sv="http://www.jcp.org/jcr/sv/1.0";
         xmlns:rep="internal"
         xmlns:jcr="http://www.jcp.org/jcr/1.0";>

This is not valid XML as the namespace attributes are duplicated.

Does anyone have any ideas what is going on?

Thanks

Rob


--
Certus Technology Associates Limited.
http://www.certus-tech.com
Tel: +44 (0)114 272 5081

Reply via email to