On 26 Jan 2010, at 01:57, Alexander Klimetschek wrote:

> On Mon, Jan 25, 2010 at 16:30, Rakesh Vidyadharan <[email protected]> wrote:
>> I used the system view.  You can see the exporter code at 
>> http://kenai.com/projects/jcrmanager/sources/svn/content/trunk/src/app/com/sptci/jcr/webui/listener/menu/NodeExportListener.java?rev=48
>>  (line 99).
> 
> In JCR 2.0 the property sv:multiple=true must be set for multi-value
> properties (see [1]). I thought this is the case for Jackrabbit 1.x
> already (but I might be wrong). Do you see that property in your
> exports?
> 
> [1] http://www.day.com/specs/jcr/2.0/7_Export.html#SystemView

That does not seem to be the case with JR 1.6.1 (I think I started with 1.4).  
Here is a sample export output with a multi-value property.  In this case 
import will work since there are two values, but if I remove one of the values 
and then import the imported node has only a single-valued property.

<?xml version="1.0" encoding="UTF-8"?>
<sv:node sv:name="test" xmlns:fn="http://www.w3.org/2005/xpath-functions"; 
xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:jcr="http://www.jcp.org/jcr/1.0"; 
xmlns:mgnl="http://www.magnolia.info/jcr/mgnl"; 
xmlns:mix="http://www.jcp.org/jcr/mix/1.0"; 
xmlns:sv="http://www.jcp.org/jcr/sv/1.0"; xmlns:rep="internal" 
xmlns:nt="http://www.jcp.org/jcr/nt/1.0";>
  <sv:property sv:name="jcr:primaryType" sv:type="Name">
    <sv:value>nt:unstructured</sv:value>
  </sv:property>
  <sv:property sv:name="multivalue" sv:type="String">
    <sv:value>First value</sv:value>
    <sv:value>Second value.</sv:value>
  </sv:property>
</sv:node>

Reply via email to